mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +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
|
@ -685,7 +685,7 @@ impl<'a> ElementHelpers<'a> for &'a Element {
|
|||
// Usually, the reference count will be 1 here. But transitions could make it greater
|
||||
// than that.
|
||||
let existing_declarations = Arc::make_unique(existing_declarations);
|
||||
for declaration in existing_declarations.iter_mut() {
|
||||
for declaration in &mut *existing_declarations {
|
||||
if declaration.name() == property_decl.name() {
|
||||
*declaration = property_decl;
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue