diff --git a/x11rb-async/src/connection.rs b/x11rb-async/src/connection.rs index 4c2f3bb0..c9bbde14 100644 --- a/x11rb-async/src/connection.rs +++ b/x11rb-async/src/connection.rs @@ -67,7 +67,7 @@ pub trait RequestConnection: Sync { fn send_trait_request_with_reply<'this, 'req, 'future, R>( &'this self, request: R, - ) -> Fut<'future, Cookie<'_, Self, R::Reply>, ConnectionError> + ) -> Fut<'future, Cookie<'this, Self, R::Reply>, ConnectionError> where 'this: 'future, 'req: 'future, @@ -131,7 +131,7 @@ pub trait RequestConnection: Sync { fn send_trait_request_with_reply_with_fds<'this, 'req, 'future, R>( &'this self, request: R, - ) -> Fut<'future, CookieWithFds<'_, Self, R::Reply>, ConnectionError> + ) -> Fut<'future, CookieWithFds<'this, Self, R::Reply>, ConnectionError> where 'this: 'future, 'req: 'future, diff --git a/x11rb-async/src/cookie.rs b/x11rb-async/src/cookie.rs index 150890ea..6ea61fee 100644 --- a/x11rb-async/src/cookie.rs +++ b/x11rb-async/src/cookie.rs @@ -65,7 +65,7 @@ impl<'conn, C: Connection + ?Sized> VoidCookie<'conn, C> { } } -impl<'conn, C: RequestConnection + ?Sized> Drop for VoidCookie<'conn, C> { +impl Drop for VoidCookie<'_, C> { fn drop(&mut self) { self.conn.discard_reply( self.sequence, @@ -94,7 +94,7 @@ impl<'a, C: RequestConnection + ?Sized> RawCookie<'a, C> { } } -impl<'a, C: RequestConnection + ?Sized> Drop for RawCookie<'a, C> { +impl Drop for RawCookie<'_, C> { fn drop(&mut self) { self.conn.discard_reply( self.sequence,