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:
parent
d2ff4a1cff
commit
10a0d4fc6b
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue