Skip to content

Commit 7bc7c9f

Browse files
committed
clippy::into_iter_on_array
1 parent 78144d3 commit 7bc7c9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/with_custom_values.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fn test_reflexive_for_enum_with_custom_value() {
6464
.map(|&x| -> Option<Color> { num_renamed::FromPrimitive::from_u64(x) })
6565
.map(|x| x.and_then(|x| num_renamed::ToPrimitive::to_u64(&x)))
6666
.collect();
67-
let before = before.into_iter().cloned().map(Some).collect::<Vec<_>>();
67+
let before = before.iter().cloned().map(Some).collect::<Vec<_>>();
6868

6969
assert_eq!(before, after);
7070
}

0 commit comments

Comments
 (0)