From 10a0d4fc6b6590699867bdf48825c4548a084d5b Mon Sep 17 00:00:00 2001 From: Zeeshan Ali Date: Thu, 6 Oct 2022 21:55:13 +0200 Subject: [PATCH] Replace into_iter calls with iter Ran `clippy --fix` to autofix another warning but it did this as well and I thought why not. --- src/types.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/types.rs b/src/types.rs index 0fea12c..c7739bb 100644 --- a/src/types.rs +++ b/src/types.rs @@ -655,7 +655,7 @@ mod tests { ), ]; - for (test, expected) in tests.into_iter() { + for (test, expected) in tests.iter() { let mut got = Vec::new(); test.serialize(&mut got).unwrap(); assert_eq!(expected, &got); @@ -699,7 +699,7 @@ mod tests { ), ]; - for (test, expected) in tests.into_iter() { + for (test, expected) in tests.iter() { let mut got = Vec::new(); test.serialize(&mut got).unwrap(); assert_eq!(expected, &got); @@ -732,7 +732,7 @@ mod tests { ), ]; - for (test, expected) in tests.into_iter() { + for (test, expected) in tests.iter() { let mut got = Vec::new(); test.serialize(&mut got).unwrap(); assert_eq!(expected, &got);