Skip to content

Commit e04bceb

Browse files
committed
Call iter() instead of into_iter() on arrays (rust-lang/rust#66145).
1 parent 2244231 commit e04bceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/form_validation/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ fn test_bad_form_missing_fields() {
7272
"password=pass&age=30"
7373
];
7474

75-
for bad_input in bad_inputs.into_iter() {
75+
for bad_input in bad_inputs.iter() {
7676
check_bad_form(bad_input, Status::UnprocessableEntity);
7777
}
7878
}

0 commit comments

Comments
 (0)