From 13537d2e0ce54f88909e6f44006254490ae1d1ab Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 12 Apr 2013 01:10:01 -0400 Subject: core: remove unused 'mut' variables --- src/libcore/task/spawn.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libcore/task') diff --git a/src/libcore/task/spawn.rs b/src/libcore/task/spawn.rs index 118c4cc2312..d872d38a278 100644 --- a/src/libcore/task/spawn.rs +++ b/src/libcore/task/spawn.rs @@ -575,7 +575,7 @@ fn spawn_raw_oldsched(opts: TaskOpts, f: ~fn()) { }; assert!(!new_task.is_null()); // Getting killed after here would leak the task. - let mut notify_chan = if opts.notify_chan.is_none() { + let notify_chan = if opts.notify_chan.is_none() { None } else { Some(opts.notify_chan.swap_unwrap()) -- cgit 1.4.1-3-g733a5