From dc86e8365495acc87b983a290bb7277a37a5247f Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Thu, 18 Sep 2014 16:29:46 -0700 Subject: Eliminate warnings --- components/util/workqueue.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'components/util/workqueue.rs') diff --git a/components/util/workqueue.rs b/components/util/workqueue.rs index 9effab16551..4924036a6a8 100644 --- a/components/util/workqueue.rs +++ b/components/util/workqueue.rs @@ -229,7 +229,7 @@ impl WorkQueue { } // Spawn threads. - for thread in threads.move_iter() { + for thread in threads.into_iter() { TaskBuilder::new().named(task_name).native().spawn(proc() { let mut thread = thread; thread.start() @@ -260,8 +260,8 @@ impl WorkQueue { pub fn run(&mut self) { // Tell the workers to start. let mut work_count = AtomicUint::new(self.work_count); - for worker in self.workers.mut_iter() { - worker.chan.send(StartMsg(worker.deque.take_unwrap(), &mut work_count, &self.data)) + for worker in self.workers.iter_mut() { + worker.chan.send(StartMsg(worker.deque.take().unwrap(), &mut work_count, &self.data)) } // Wait for the work to finish. -- cgit v1.2.3