aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/devtools.rs
diff options
context:
space:
mode:
authorJoão Oliveira <hello@jxs.pt>2015-08-15 02:27:04 +0100
committerJoão Oliveira <hello@jxs.pt>2015-08-15 02:27:39 +0100
commit0038580abf08d40b41136d1350a48da0c757ed77 (patch)
tree2e1158c846591476f24d38425783b4eeaa365bc0 /components/script/devtools.rs
parent13e7de482c0f58ca5af30dbca5d94e6b9cedd1cd (diff)
downloadservo-0038580abf08d40b41136d1350a48da0c757ed77.tar.gz
servo-0038580abf08d40b41136d1350a48da0c757ed77.zip
Replace uses of `for foo in bar.iter()` and `for foo in bar.iter_mut()`
closes #7197
Diffstat (limited to 'components/script/devtools.rs')
-rw-r--r--components/script/devtools.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/devtools.rs b/components/script/devtools.rs
index 06a2141d3b1..25a0da81a40 100644
--- a/components/script/devtools.rs
+++ b/components/script/devtools.rs
@@ -158,7 +158,7 @@ pub fn handle_modify_attribute(page: &Rc<Page>,
let node = find_node_by_unique_id(&*page, pipeline, node_id);
let elem = ElementCast::to_ref(node.r()).expect("should be getting layout of element");
- for modification in modifications.iter(){
+ for modification in &modifications {
match modification.newValue {
Some(ref string) => {
let _ = elem.SetAttribute(modification.attributeName.clone(), string.clone());