Skip to content

Commit

Permalink
Call iter() instead of into_iter() on arrays (rust-lang/rust#66145).
Browse files Browse the repository at this point in the history
  • Loading branch information
jebrosen committed Nov 28, 2019
1 parent 2244231 commit e04bceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/form_validation/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ fn test_bad_form_missing_fields() {
"password=pass&age=30"
];

for bad_input in bad_inputs.into_iter() {
for bad_input in bad_inputs.iter() {
check_bad_form(bad_input, Status::UnprocessableEntity);
}
}
Expand Down

0 comments on commit e04bceb

Please sign in to comment.