diff options
author | João Oliveira <hello@jxs.pt> | 2015-08-18 01:36:04 +0100 |
---|---|---|
committer | João Oliveira <hello@jxs.pt> | 2015-08-18 01:46:11 +0100 |
commit | 067a22a868fb59be92df4f07c5ca54669dc1c229 (patch) | |
tree | 6a35298b4b3aa43c9d896f5cb7d63903611fb246 /components/script/dom/document.rs | |
parent | f4b526cfb4ea1ef263ff029650c74ff50a74d5db (diff) | |
download | servo-067a22a868fb59be92df4f07c5ca54669dc1c229.tar.gz servo-067a22a868fb59be92df4f07c5ca54669dc1c229.zip |
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)
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r-- | components/script/dom/document.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index c3d81e20ba5..c538893506b 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -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())); |