Skip to content

Commit

Permalink
Merge pull request #949 from psychon/clippy-ellided-lifetime
Browse files Browse the repository at this point in the history
Fix some new warnings from nightly
  • Loading branch information
mergify[bot] authored Nov 23, 2024
2 parents 45e688c + 3a5a7fe commit de064c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions x11rb-async/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions x11rb-async/src/cookie.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl<'conn, C: Connection + ?Sized> VoidCookie<'conn, C> {
}
}

impl<'conn, C: RequestConnection + ?Sized> Drop for VoidCookie<'conn, C> {
impl<C: RequestConnection + ?Sized> Drop for VoidCookie<'_, C> {
fn drop(&mut self) {
self.conn.discard_reply(
self.sequence,
Expand Down Expand Up @@ -94,7 +94,7 @@ impl<'a, C: RequestConnection + ?Sized> RawCookie<'a, C> {
}
}

impl<'a, C: RequestConnection + ?Sized> Drop for RawCookie<'a, C> {
impl<C: RequestConnection + ?Sized> Drop for RawCookie<'_, C> {
fn drop(&mut self) {
self.conn.discard_reply(
self.sequence,
Expand Down

0 comments on commit de064c3

Please sign in to comment.