mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-03 07:10:05 -04:00
Windows: use Box::leak() instead of Box::into_raw()
This was detected by a new change in Nightly Rust that applied `#[must_use]` to the return value of `Box::into_raw()`.
This commit is contained in:
committed by
Kirill Chibisov
parent
5fce4a09de
commit
77e8fe6094
@@ -2441,7 +2441,7 @@ unsafe extern "system" fn thread_event_target_callback(
|
|||||||
if userdata_removed {
|
if userdata_removed {
|
||||||
drop(userdata);
|
drop(userdata);
|
||||||
} else {
|
} else {
|
||||||
Box::into_raw(userdata);
|
Box::leak(userdata);
|
||||||
}
|
}
|
||||||
result
|
result
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user