aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmliframeelement.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/dom/htmliframeelement.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/dom/htmliframeelement.rs')
-rw-r--r--components/script/dom/htmliframeelement.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs
index 220e55c8b07..978489f3f3b 100644
--- a/components/script/dom/htmliframeelement.rs
+++ b/components/script/dom/htmliframeelement.rs
@@ -380,7 +380,7 @@ impl<'a> VirtualMethods for &'a HTMLIFrameElement {
&atom!("sandbox") => {
let mut modes = SandboxAllowance::AllowNothing as u8;
if let Some(ref tokens) = attr.value().tokens() {
- for token in tokens.iter() {
+ for token in *tokens {
modes |= match &*token.to_ascii_lowercase() {
"allow-same-origin" => SandboxAllowance::AllowSameOrigin,
"allow-forms" => SandboxAllowance::AllowForms,
@@ -459,4 +459,3 @@ impl<'a> VirtualMethods for &'a HTMLIFrameElement {
}
}
}
-