diff options
author | Keegan McAllister <kmcallister@mozilla.com> | 2014-09-18 16:29:46 -0700 |
---|---|---|
committer | Keegan McAllister <kmcallister@mozilla.com> | 2014-09-20 13:00:55 -0700 |
commit | dc86e8365495acc87b983a290bb7277a37a5247f (patch) | |
tree | 36af9677f6a24d7163e4b41c2b8e53da4d15538c /components/util/workqueue.rs | |
parent | 2f46b9aedefae7938102f7a1ccc6c96044cf1bdb (diff) | |
download | servo-dc86e8365495acc87b983a290bb7277a37a5247f.tar.gz servo-dc86e8365495acc87b983a290bb7277a37a5247f.zip |
Eliminate warnings
Diffstat (limited to 'components/util/workqueue.rs')
-rw-r--r-- | components/util/workqueue.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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<QueueData: Send, WorkData: Send> WorkQueue<QueueData, WorkData> { } // 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<QueueData: Send, WorkData: Send> WorkQueue<QueueData, WorkData> { 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. |