From e04bceb81ec35786e8a40ce861fd26e2100a2a48 Mon Sep 17 00:00:00 2001 From: Jeb Rosen Date: Thu, 28 Nov 2019 12:40:00 -0800 Subject: [PATCH] Call iter() instead of into_iter() on arrays (rust-lang/rust#66145). --- examples/form_validation/src/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/form_validation/src/tests.rs b/examples/form_validation/src/tests.rs index 5a927eaa..b7c72821 100644 --- a/examples/form_validation/src/tests.rs +++ b/examples/form_validation/src/tests.rs @@ -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); } }