Create `WindowAttributes` for respective platform specific window attributes in `winit` due to move of `WindowAttributes`.
23 lines
461 B
Rust
23 lines
461 B
Rust
#[allow(dead_code)]
|
|
fn needs_sync<T: Sync + ?Sized>() {}
|
|
|
|
#[test]
|
|
fn event_loop_proxy_send() {
|
|
needs_sync::<winit::event_loop::EventLoopProxy>();
|
|
}
|
|
|
|
#[test]
|
|
fn window_sync() {
|
|
needs_sync::<dyn winit::window::Window>();
|
|
}
|
|
|
|
#[test]
|
|
fn window_builder_sync() {
|
|
needs_sync::<winit::window::WindowAttributes>();
|
|
}
|
|
|
|
#[test]
|
|
fn custom_cursor_sync() {
|
|
needs_sync::<winit::cursor::CustomCursorSource>();
|
|
needs_sync::<winit::cursor::CustomCursor>();
|
|
}
|