diff --git a/tokio-xmpp/src/xmpp_stream.rs b/tokio-xmpp/src/xmpp_stream.rs index bbab0247..54b3821e 100644 --- a/tokio-xmpp/src/xmpp_stream.rs +++ b/tokio-xmpp/src/xmpp_stream.rs @@ -89,7 +89,7 @@ impl Sink for XMPPStream { } fn start_send( - #[cfg_attr(rustc_least_1_48, allow(unused_mut))] mut self: Pin<&mut Self>, + #[cfg_attr(rustc_least_1_46, allow(unused_mut))] mut self: Pin<&mut Self>, item: Packet, ) -> Result<(), Self::Error> { Pin::new(&mut self.stream.lock().unwrap().deref_mut()) @@ -98,7 +98,7 @@ impl Sink for XMPPStream { } fn poll_flush( - #[cfg_attr(rustc_least_1_48, allow(unused_mut))] mut self: Pin<&mut Self>, + #[cfg_attr(rustc_least_1_46, allow(unused_mut))] mut self: Pin<&mut Self>, cx: &mut Context, ) -> Poll> { Pin::new(&mut self.stream.lock().unwrap().deref_mut()) @@ -107,7 +107,7 @@ impl Sink for XMPPStream { } fn poll_close( - #[cfg_attr(rustc_least_1_48, allow(unused_mut))] mut self: Pin<&mut Self>, + #[cfg_attr(rustc_least_1_46, allow(unused_mut))] mut self: Pin<&mut Self>, cx: &mut Context, ) -> Poll> { Pin::new(&mut self.stream.lock().unwrap().deref_mut()) @@ -121,7 +121,7 @@ impl Stream for XMPPStream { type Item = Result; fn poll_next( - #[cfg_attr(rustc_least_1_48, allow(unused_mut))] mut self: Pin<&mut Self>, + #[cfg_attr(rustc_least_1_46, allow(unused_mut))] mut self: Pin<&mut Self>, cx: &mut Context, ) -> Poll> { Pin::new(&mut self.stream.lock().unwrap().deref_mut())