Skip to content

Commit

Permalink
sys: disable function ptr lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeissl committed Dec 14, 2024
1 parent b07d3f3 commit 50bb662
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wayland-sys/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 50bb662

Please sign in to comment.