core::rt: Fix a warning about unnecessary mutable variable
This commit is contained in:
parent
34be071353
commit
0b4d4edf8b
@ -77,7 +77,7 @@ pub fn spawntask_try(f: ~fn()) -> Result<(), ()> {
|
||||
|
||||
// Switch to the scheduler
|
||||
let f = Cell(Cell(f));
|
||||
let mut sched = local_sched::take();
|
||||
let sched = local_sched::take();
|
||||
do sched.deschedule_running_task_and_then() |old_task| {
|
||||
let old_task = Cell(old_task);
|
||||
let f = f.take();
|
||||
|
Loading…
Reference in New Issue
Block a user