diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/libstd/rt/sched.rs | 6 | ||||
| -rw-r--r-- | src/libstd/rt/uv/uvio.rs | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/libstd/rt/sched.rs b/src/libstd/rt/sched.rs index 6a624b1c135..a50618ba0ad 100644 --- a/src/libstd/rt/sched.rs +++ b/src/libstd/rt/sched.rs @@ -105,7 +105,7 @@ impl Scheduler { sleeper_list: SleeperList, run_anything: bool, friend: Option<SchedHandle>) - -> Scheduler { + -> Scheduler { let mut event_loop = event_loop; let idle_callback = event_loop.pausible_idle_callback(); @@ -124,7 +124,7 @@ impl Scheduler { metrics: SchedMetrics::new(), run_anything: run_anything, friend_handle: friend, - rng: XorShiftRng::new(), + rng: XorShiftRng::new(), idle_callback: idle_callback } } @@ -174,7 +174,7 @@ impl Scheduler { // cleaning up the memory it uses. As we didn't actually call // task.run() on the scheduler task we never get through all // the cleanup code it runs. - let mut stask = Local::take::<Task>(); + let mut stask = Local::take::<Task>(); rtdebug!("stopping scheduler %u", stask.sched.get_ref().sched_id()); diff --git a/src/libstd/rt/uv/uvio.rs b/src/libstd/rt/uv/uvio.rs index 12a6f6f37f7..290e57942f4 100644 --- a/src/libstd/rt/uv/uvio.rs +++ b/src/libstd/rt/uv/uvio.rs @@ -178,7 +178,7 @@ impl UvPausibleIdleCallback { self.closed = true; self.watcher.close(||()); } - } + } } #[test] @@ -232,8 +232,8 @@ impl UvRemoteCallback { // could be called in the other thread, missing the final // callback while still destroying the handle. - let should_exit = unsafe { - exit_flag_clone.with_imm(|&should_exit| should_exit) + let should_exit = unsafe { + exit_flag_clone.with_imm(|&should_exit| should_exit) }; f(); |
