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:
parent
02a0a91a94
commit
34a37b8747
1 changed files with 1 additions and 1 deletions
|
|
@ -2391,7 +2391,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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue