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 ec398118d1e..3d1b36f44c6 100644 --- a/wayland-client/src/event_queue.rs +++ b/wayland-client/src/event_queue.rs @@ -651,7 +651,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 fb0fc517c90..2fb1cdaf4b5 100644 --- a/wayland-server/src/dispatch.rs +++ b/wayland-server/src/dispatch.rs @@ -155,7 +155,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, diff --git a/wayland-sys/src/server.rs b/wayland-sys/src/server.rs index b11e8ed7060..b941d629319 100644 --- a/wayland-sys/src/server.rs +++ b/wayland-sys/src/server.rs @@ -251,6 +251,7 @@ pub mod signal { // Safety: the signal pointer is valid unsafe { list_for_each!(l, &mut (*signal).listener_list as *mut wl_list, wl_listener, link, { + #[allow(unknown_lints, unpredictable_function_pointer_comparisons)] if (*l).notify == notify { return l; }