Skip to content

Commit 6049eab

Browse files
cmeisslids1024
authored andcommitted
sys: disable function ptr lint
1 parent 7f4fed8 commit 6049eab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

wayland-sys/src/server.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,9 @@ pub mod signal {
251251
// Safety: the signal pointer is valid
252252
unsafe {
253253
list_for_each!(l, &mut (*signal).listener_list as *mut wl_list, wl_listener, link, {
254+
// nightly only lint
255+
#[allow(unknown_lints)]
256+
#[allow(unpredictable_function_pointer_comparisons)]
254257
if (*l).notify == notify {
255258
return l;
256259
}

0 commit comments

Comments
 (0)