Windows: Add #[deny(unsafe_op_in_unsafe_fn)] (#3070)

This commit is contained in:
Mads Marquart
2023-09-29 16:07:44 +02:00
committed by Kirill Chibisov
parent ec83de3938
commit a52a6d47ca
8 changed files with 339 additions and 289 deletions

View File

@@ -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
}