Skip to content

Commit 725a43e

Browse files
committed
Impl Sync for WinitNotify on platform wasm32
1 parent d82ce67 commit 725a43e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/bevy_winit/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ impl AssetNotify for WinitNotify {
5858
#[cfg(target_arch = "wasm32")]
5959
unsafe impl Send for WinitNotify {}
6060

61+
#[cfg(target_arch = "wasm32")]
62+
unsafe impl Sync for WinitNotify {}
63+
6164
#[derive(Default)]
6265
pub struct WinitPlugin;
6366

0 commit comments

Comments
 (0)