mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-28 07:33:14 -04:00
X11: Add #[deny(unsafe_op_in_unsafe_fn)] (#3121)
* X11: Add #[deny(unsafe_op_in_unsafe_fn)] * Enable #![deny(unsafe_op_in_unsafe_fn)] everywhere
This commit is contained in:
committed by
Kirill Chibisov
parent
a52a6d47ca
commit
d9363219e1
@@ -122,12 +122,14 @@ impl<T: 'static> EventProcessor<T> {
|
||||
1
|
||||
}
|
||||
|
||||
let result = (wt.xconn.xlib.XCheckIfEvent)(
|
||||
wt.xconn.display,
|
||||
event_ptr,
|
||||
Some(predicate),
|
||||
std::ptr::null_mut(),
|
||||
);
|
||||
let result = unsafe {
|
||||
(wt.xconn.xlib.XCheckIfEvent)(
|
||||
wt.xconn.display,
|
||||
event_ptr,
|
||||
Some(predicate),
|
||||
std::ptr::null_mut(),
|
||||
)
|
||||
};
|
||||
|
||||
result != 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user