From 6049eab0a53ed9a113f5a2a36197b2713095207f Mon Sep 17 00:00:00 2001 From: Christian Meissl Date: Sat, 14 Dec 2024 23:19:41 +0100 Subject: [PATCH] sys: disable function ptr lint --- wayland-sys/src/server.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wayland-sys/src/server.rs b/wayland-sys/src/server.rs index b11e8ed7060..0acee4f8873 100644 --- a/wayland-sys/src/server.rs +++ b/wayland-sys/src/server.rs @@ -251,6 +251,9 @@ 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, { + // nightly only lint + #[allow(unknown_lints)] + #[allow(unpredictable_function_pointer_comparisons)] if (*l).notify == notify { return l; }