From 15255a6b30866f8660a6b737d24392209ae6f352 Mon Sep 17 00:00:00 2001 From: Paul Fariello Date: Tue, 16 Feb 2021 00:20:40 +0100 Subject: [PATCH] Extend build fix workaround from 1.48 to 1.46 --- tokio-xmpp/src/xmpp_stream.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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())