mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
7b23d190b1
* Fix old `use` declarations * Fix hidden lifetime parameter * Fix missing methods in `web::Monitor`. Originally fixed by @ryanisaacg in 94387c4bf5bca35f4e24562ce89a4f4badd53aa8. * Disable some tests and examples on `wasm32`
10 lines
211 B
Rust
10 lines
211 B
Rust
#[allow(dead_code)]
|
|
fn needs_sync<T: Sync>() {}
|
|
|
|
#[cfg(not(target_arch = "wasm32"))]
|
|
#[test]
|
|
fn window_sync() {
|
|
// ensures that `winit::Window` implements `Sync`
|
|
needs_sync::<winit::window::Window>();
|
|
}
|