From e6e96ab6f4fe905efe8862c6913303b1bec83ae5 Mon Sep 17 00:00:00 2001 From: Victor Berger Date: Sat, 4 Mar 2017 08:21:30 +0100 Subject: [PATCH] tests: don't instanciate an event loop to check EventsLoop: Send+Sync --- tests/events_loop.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/events_loop.rs b/tests/events_loop.rs index 4623b80e..85b3bb6b 100644 --- a/tests/events_loop.rs +++ b/tests/events_loop.rs @@ -5,7 +5,6 @@ extern crate winit; // This short test will only compile if the `EventsLoop` is `Send` + `Sync`. #[test] fn send_sync() { - fn check_send_sync(_: T) {} - let events_loop = winit::EventsLoop::new(); - check_send_sync(events_loop); + fn check_send_sync() {} + check_send_sync::(); }