mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-26 22:53:15 -04:00
* Fix old `use` declarations
* Fix hidden lifetime parameter
* Fix missing methods in `web::Monitor`.
Originally fixed by @ryanisaacg in 94387c4bf5.
* 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>();
|
|
}
|