mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 15:13:13 -04:00
api: convert Window to dyn Window
This should allow us to make future split of backends much easier. The `Box<dyn Window>` is a _temporary_ solution, which will be removed with the future updates when we decide on how the Window should be stored.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#[allow(dead_code)]
|
||||
fn needs_send<T: Send>() {}
|
||||
fn needs_send<T: Send + ?Sized>() {}
|
||||
|
||||
#[test]
|
||||
fn event_loop_proxy_send() {
|
||||
@@ -8,7 +8,7 @@ fn event_loop_proxy_send() {
|
||||
|
||||
#[test]
|
||||
fn window_send() {
|
||||
needs_send::<winit::window::Window>();
|
||||
needs_send::<dyn winit::window::Window>();
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user