core::rt: Fix a warning about unnecessary mutable variable
This commit is contained in:
parent
34be071353
commit
0b4d4edf8b
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue