mirror of
https://github.com/bevyengine/bevy
synced 2024-09-20 14:32:06 +00:00
Remove unnecessary unsafe impls for WinitWindows on Wasm (#11270)
# Objective In the past `winit:🪟:Window` was not Send + Sync on web. https://github.com/rust-windowing/winit/pull/2834 made `winit:🪟:Window` Sync + Send so Bevy's `unsafe impl` is no longer necessary. ## Solution Remove the unsafe impls.
This commit is contained in:
parent
69016885c2
commit
13d3de8ee1
1 changed files with 0 additions and 6 deletions
|
@ -356,9 +356,3 @@ pub fn winit_window_position(
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 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