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.
This commit is contained in:
Ryan Thomas
2017-07-27 21:51:37 +01:00
parent 4c8373363f
commit a37ecf56bb
+3 -2
View File
@@ -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();
}