diff --git a/src/lib.rs b/src/lib.rs index 5331196..476660e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -38,7 +38,7 @@ //! type Output = (); //! //! fn poll_with_strategy<'a, S: Strategy<'a>>( -//! mut self: Pin<&'a mut Self>, +//! mut self: Pin<&mut Self>, //! strategy: &mut S, //! context: &mut S::Context, //! ) -> Poll { @@ -220,7 +220,7 @@ macro_rules! easy_wrapper { } pub(crate) fn poll_with_strategy<'__strategy, __S: $crate::Strategy<'__strategy>>( - self: ::core::pin::Pin<&'__strategy mut Self>, + self: ::core::pin::Pin<&mut Self>, strategy: &mut __S, context: &mut __S::Context, ) -> ::core::task::Poll<$output> { @@ -284,7 +284,7 @@ pub trait EventListenerFuture { /// This function should use the `Strategy::poll` method to poll the future, and proceed /// based on the result. fn poll_with_strategy<'a, S: Strategy<'a>>( - self: Pin<&'a mut Self>, + self: Pin<&mut Self>, strategy: &mut S, context: &mut S::Context, ) -> Poll; diff --git a/tests/easy_wrapper.rs b/tests/easy_wrapper.rs index c134184..4ec48ec 100644 --- a/tests/easy_wrapper.rs +++ b/tests/easy_wrapper.rs @@ -15,7 +15,7 @@ fn easy_wrapper_generics() { type Output = (); fn poll_with_strategy<'a, S: Strategy<'a>>( - self: Pin<&'a mut Self>, + self: Pin<&mut Self>, _strategy: &mut S, _context: &mut S::Context, ) -> Poll { @@ -41,7 +41,7 @@ fn easy_wrapper_generics() { type Output = T; fn poll_with_strategy<'a, S: Strategy<'a>>( - self: Pin<&'a mut Self>, + self: Pin<&mut Self>, _strategy: &mut S, _context: &mut S::Context, ) -> Poll { @@ -64,7 +64,7 @@ fn easy_wrapper_generics() { type Output = &'a (); fn poll_with_strategy<'b, S: Strategy<'b>>( - self: Pin<&'b mut Self>, + self: Pin<&mut Self>, _strategy: &mut S, _context: &mut S::Context, ) -> Poll { @@ -93,7 +93,7 @@ fn easy_wrapper_generics() { type Output = &'a T; fn poll_with_strategy<'b, S: Strategy<'b>>( - self: Pin<&'b mut Self>, + self: Pin<&mut Self>, _strategy: &mut S, _context: &mut S::Context, ) -> Poll {