From a37ecf56bbf829501098d04f8fd4a7ab1818bbdc Mon Sep 17 00:00:00 2001 From: Ryan Thomas Date: Thu, 27 Jul 2017 21:51:37 +0100 Subject: [PATCH] Wrap the test in `unsafe` to prevent E0133. E0133 has gone from warning to error on nightly now, this fix allows the tests to pass on nightly. --- core-foundation/src/runloop.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core-foundation/src/runloop.rs b/core-foundation/src/runloop.rs index 5655535..ccc1f78 100644 --- a/core-foundation/src/runloop.rs +++ b/core-foundation/src/runloop.rs @@ -125,8 +125,9 @@ mod test { let run_loop_timer = CFRunLoopTimer::new(now + 0.20f64, 0f64, 0, 0, timer_popped, &mut context); - run_loop.add_timer(&run_loop_timer, kCFRunLoopDefaultMode); - + unsafe { + run_loop.add_timer(&run_loop_timer, kCFRunLoopDefaultMode); + } CFRunLoop::run_current(); }