diff options
author | João Oliveira <hello@jxs.pt> | 2015-08-18 01:36:04 +0100 |
---|---|---|
committer | João Oliveira <hello@jxs.pt> | 2015-08-18 01:46:11 +0100 |
commit | 067a22a868fb59be92df4f07c5ca54669dc1c229 (patch) | |
tree | 6a35298b4b3aa43c9d896f5cb7d63903611fb246 /components/script/timers.rs | |
parent | f4b526cfb4ea1ef263ff029650c74ff50a74d5db (diff) | |
download | servo-067a22a868fb59be92df4f07c5ca54669dc1c229.tar.gz servo-067a22a868fb59be92df4f07c5ca54669dc1c229.zip |
Replace uses of `for foo in bar.iter()`,
and `for foo in bar.iter_mut(), and for foo in bar.into_iter()
(continuation of #7197)
Diffstat (limited to 'components/script/timers.rs')
-rw-r--r-- | components/script/timers.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/timers.rs b/components/script/timers.rs index 634a6a4e110..579c0d9a2c3 100644 --- a/components/script/timers.rs +++ b/components/script/timers.rs @@ -83,7 +83,7 @@ pub struct TimerManager { impl Drop for TimerManager { fn drop(&mut self) { - for (_, timer_handle) in self.active_timers.borrow_mut().iter_mut() { + for (_, timer_handle) in &mut *self.active_timers.borrow_mut() { timer_handle.cancel(); } } @@ -125,12 +125,12 @@ impl TimerManager { } pub fn suspend(&self) { - for (_, timer_handle) in self.active_timers.borrow_mut().iter_mut() { + for (_, timer_handle) in &mut *self.active_timers.borrow_mut() { timer_handle.suspend(); } } pub fn resume(&self) { - for (_, timer_handle) in self.active_timers.borrow_mut().iter_mut() { + for (_, timer_handle) in &mut *self.active_timers.borrow_mut() { timer_handle.resume(); } } |