mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 15:14:50 +00:00
Remove unnecessary unsafe Send
and Sync
impl for WinitWindows
on wasm. (#5863)
# Objective https://github.com/bevyengine/bevy/pull/503 added these. I don't know what problem it solved, the PR doesn't say and the code didn't make it obvious to me. ## Solution AFAIK removing unsafe `Send`/`Sync` impls can't introduce unsoundness. Yeet. ## Migration Guide Why tho. Co-authored-by: devil-ira <justthecooldude@gmail.com>
This commit is contained in:
parent
3c2ac3651f
commit
c3cdb12149
1 changed files with 0 additions and 6 deletions
|
@ -264,9 +264,3 @@ pub fn get_best_videomode(monitor: &winit::monitor::MonitorHandle) -> winit::mon
|
|||
|
||||
modes.first().unwrap().clone()
|
||||
}
|
||||
|
||||
// WARNING: this only works under the assumption that wasm runtime is single threaded
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
unsafe impl Send for WinitWindows {}
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
unsafe impl Sync for WinitWindows {}
|
||||
|
|
Loading…
Reference in a new issue