mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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)
This commit is contained in:
parent
f4b526cfb4
commit
067a22a868
32 changed files with 76 additions and 78 deletions
|
@ -277,11 +277,10 @@ impl<'a,'b> ResolveGeneratedContentFragmentMutator<'a,'b> {
|
|||
self.traversal.counters.insert((*counter_name).clone(), counter);
|
||||
}
|
||||
|
||||
for &(ref counter_name, value) in fragment.style()
|
||||
for &(ref counter_name, value) in &fragment.style()
|
||||
.get_counters()
|
||||
.counter_increment
|
||||
.0
|
||||
.iter() {
|
||||
.0 {
|
||||
if let Some(ref mut counter) = self.traversal.counters.get_mut(counter_name) {
|
||||
counter.increment(self.level, value);
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue