mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Replace uses of for foo in bar.iter()
and for foo in bar.iter_mut()
closes #7197
This commit is contained in:
parent
13e7de482c
commit
0038580abf
55 changed files with 141 additions and 154 deletions
|
@ -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 {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue