Replace into_iter calls with iter

Ran `clippy --fix` to autofix another warning but it did this as well
and I thought why not.
This commit is contained in:
Zeeshan Ali 2022-10-06 21:55:13 +02:00 committed by Damian Poddebniak
parent d2ff4a1cff
commit 10a0d4fc6b
1 changed files with 3 additions and 3 deletions

View File

@ -655,7 +655,7 @@ mod tests {
), ),
]; ];
for (test, expected) in tests.into_iter() { for (test, expected) in tests.iter() {
let mut got = Vec::new(); let mut got = Vec::new();
test.serialize(&mut got).unwrap(); test.serialize(&mut got).unwrap();
assert_eq!(expected, &got); 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(); let mut got = Vec::new();
test.serialize(&mut got).unwrap(); test.serialize(&mut got).unwrap();
assert_eq!(expected, &got); 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(); let mut got = Vec::new();
test.serialize(&mut got).unwrap(); test.serialize(&mut got).unwrap();
assert_eq!(expected, &got); assert_eq!(expected, &got);