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
@ -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 New Issue
Block a user