mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
|
@ -162,7 +162,7 @@ impl<'a> CSSStyleDeclarationMethods for &'a CSSStyleDeclaration {
|
|||
let mut list = vec!();
|
||||
|
||||
// Step 2.2
|
||||
for longhand in longhand_properties.iter() {
|
||||
for longhand in &*longhand_properties {
|
||||
// Step 2.2.1
|
||||
let declaration = owner.get_declaration(&Atom::from_slice(&longhand));
|
||||
|
||||
|
@ -327,7 +327,7 @@ impl<'a> CSSStyleDeclarationMethods for &'a CSSStyleDeclaration {
|
|||
match longhands_from_shorthand(&property) {
|
||||
// Step 4
|
||||
Some(longhands) => {
|
||||
for longhand in longhands.iter() {
|
||||
for longhand in &*longhands {
|
||||
elem.remove_inline_style_property(longhand)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue