diff options
author | João Oliveira <hello@jxs.pt> | 2015-08-15 02:27:04 +0100 |
---|---|---|
committer | João Oliveira <hello@jxs.pt> | 2015-08-15 02:27:39 +0100 |
commit | 0038580abf08d40b41136d1350a48da0c757ed77 (patch) | |
tree | 2e1158c846591476f24d38425783b4eeaa365bc0 /components/script/devtools.rs | |
parent | 13e7de482c0f58ca5af30dbca5d94e6b9cedd1cd (diff) | |
download | servo-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.rs | 2 |
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()); |