mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 23:23:14 -04:00
Windows: Add #[deny(unsafe_op_in_unsafe_fn)] (#3070)
This commit is contained in:
@@ -101,7 +101,7 @@ unsafe extern "system" fn monitor_enum_proc(
|
||||
data: LPARAM,
|
||||
) -> BOOL {
|
||||
let monitors = data as *mut VecDeque<MonitorHandle>;
|
||||
(*monitors).push_back(MonitorHandle::new(hmonitor));
|
||||
unsafe { (*monitors).push_back(MonitorHandle::new(hmonitor)) };
|
||||
true.into() // continue enumeration
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user