From c8e791b402391020e21a64b4be29943850bee293 Mon Sep 17 00:00:00 2001 From: mitchmindtree Date: Thu, 25 May 2017 23:18:56 +1000 Subject: [PATCH] Add a test that checks that EventsLoopProxy impls Send --- tests/events_loop_proxy_send.rs | 8 ++++++++ tests/window_proxy_send.rs | 9 --------- 2 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 tests/events_loop_proxy_send.rs delete mode 100644 tests/window_proxy_send.rs diff --git a/tests/events_loop_proxy_send.rs b/tests/events_loop_proxy_send.rs new file mode 100644 index 00000000..5c44aa13 --- /dev/null +++ b/tests/events_loop_proxy_send.rs @@ -0,0 +1,8 @@ +extern crate winit; + +#[test] +fn events_loop_proxy_send() { + // ensures that `winit::EventsLoopProxy` implements `Send` + fn needs_send() {} + needs_send::(); +} diff --git a/tests/window_proxy_send.rs b/tests/window_proxy_send.rs deleted file mode 100644 index 7ad62641..00000000 --- a/tests/window_proxy_send.rs +++ /dev/null @@ -1,9 +0,0 @@ -extern crate winit; - -#[cfg(feature = "window")] -#[test] -fn window_proxy_send() { - // ensures that `winit::WindowProxy` implements `Send` - fn needs_send() {} - needs_send::(); -}