mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +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
|
@ -899,7 +899,7 @@ impl<'a> DocumentHelpers<'a> for &'a Document {
|
|||
}
|
||||
} else {
|
||||
let fragment = NodeCast::from_root(self.CreateDocumentFragment());
|
||||
for node in nodes.into_iter() {
|
||||
for node in nodes {
|
||||
match node {
|
||||
NodeOrString::eNode(node) => {
|
||||
try!(fragment.r().AppendChild(node.r()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue