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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user