From 0690d178d56420ee8923cdcf5d338319246606d8 Mon Sep 17 00:00:00 2001 From: Christian Meissl Date: Sat, 14 Dec 2024 22:09:28 +0100 Subject: [PATCH] fix lifetime clippy lints --- wayland-backend/src/debug.rs | 2 +- wayland-client/src/event_queue.rs | 2 +- wayland-server/src/dispatch.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wayland-backend/src/debug.rs b/wayland-backend/src/debug.rs index 322961c2b50..24c2fc3f4c3 100644 --- a/wayland-backend/src/debug.rs +++ b/wayland-backend/src/debug.rs @@ -58,7 +58,7 @@ pub fn print_send_message( pub(crate) struct DisplaySlice<'a, D>(pub &'a [D]); -impl<'a, D: Display> Display for DisplaySlice<'a, D> { +impl Display for DisplaySlice<'_, D> { #[cfg_attr(coverage, coverage(off))] fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { let mut it = self.0.iter(); diff --git a/wayland-client/src/event_queue.rs b/wayland-client/src/event_queue.rs index ba46db8e195..0850163c6b2 100644 --- a/wayland-client/src/event_queue.rs +++ b/wayland-client/src/event_queue.rs @@ -632,7 +632,7 @@ impl QueueHandle { } } -impl<'a, State> Drop for QueueFreezeGuard<'a, State> { +impl Drop for QueueFreezeGuard<'_, State> { fn drop(&mut self) { let mut lock = self.qh.inner.lock().unwrap(); lock.freeze_count -= 1; diff --git a/wayland-server/src/dispatch.rs b/wayland-server/src/dispatch.rs index ea99edc6750..ea73fbfd5d4 100644 --- a/wayland-server/src/dispatch.rs +++ b/wayland-server/src/dispatch.rs @@ -158,7 +158,7 @@ pub struct DataInit<'a, D: 'static> { pub(crate) error: &'a mut Option<(u32, String)>, } -impl<'a, D> DataInit<'a, D> { +impl DataInit<'_, D> { /// Initialize an object by assigning it its user-data pub fn init( &mut self,