aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/parse/html.rs
diff options
context:
space:
mode:
authorJoão Oliveira <hello@jxs.pt>2015-08-18 01:36:04 +0100
committerJoão Oliveira <hello@jxs.pt>2015-08-18 01:46:11 +0100
commit067a22a868fb59be92df4f07c5ca54669dc1c229 (patch)
tree6a35298b4b3aa43c9d896f5cb7d63903611fb246 /components/script/parse/html.rs
parentf4b526cfb4ea1ef263ff029650c74ff50a74d5db (diff)
downloadservo-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/parse/html.rs')
-rw-r--r--components/script/parse/html.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/parse/html.rs b/components/script/parse/html.rs
index 6ea2dc443f8..cd4e6dd1d47 100644
--- a/components/script/parse/html.rs
+++ b/components/script/parse/html.rs
@@ -90,7 +90,7 @@ impl<'a> TreeSink for servohtmlparser::Sink {
let elem = Element::create(name, None, doc.r(),
ElementCreator::ParserCreated);
- for attr in attrs.into_iter() {
+ for attr in attrs {
elem.r().set_attribute_from_parser(attr.name, attr.value.into(), None);
}
@@ -152,7 +152,7 @@ impl<'a> TreeSink for servohtmlparser::Sink {
let node: Root<Node> = target.root();
let elem = ElementCast::to_ref(node.r())
.expect("tried to set attrs on non-Element in HTML parsing");
- for attr in attrs.into_iter() {
+ for attr in attrs {
elem.set_attribute_from_parser(attr.name, attr.value.into(), None);
}
}