core::rt: Fix a warning about unnecessary mutable variable

This commit is contained in:
Brian Anderson 2013-04-24 18:27:30 -07:00
parent 34be071353
commit 0b4d4edf8b

View File

@ -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();