mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +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
|
@ -350,7 +350,7 @@ impl<'a> HTMLFormElementHelpers for &'a HTMLFormElement {
|
|||
// TODO: Handle `dirnames` (needs directionality support)
|
||||
// https://html.spec.whatwg.org/multipage/#the-directionality
|
||||
let mut ret: Vec<FormDatum> = data_set.collect();
|
||||
for datum in ret.iter_mut() {
|
||||
for datum in &mut ret {
|
||||
match &*datum.ty {
|
||||
"file" | "textarea" => (),
|
||||
_ => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue