mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Replace uses of for foo in bar.iter()
and for foo in bar.iter_mut()
closes #7197
This commit is contained in:
parent
13e7de482c
commit
0038580abf
55 changed files with 141 additions and 154 deletions
|
@ -363,7 +363,7 @@ impl ViewportConstraints {
|
|||
let mut orientation = Orientation::Auto;
|
||||
|
||||
// collapse the list of declarations into descriptor values
|
||||
for declaration in rule.declarations.iter() {
|
||||
for declaration in &rule.declarations {
|
||||
match declaration.descriptor {
|
||||
ViewportDescriptor::MinWidth(value) => min_width = Some(value),
|
||||
ViewportDescriptor::MaxWidth(value) => max_width = Some(value),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue