Skip to content

Commit 587adba

Browse files
committed
Fix dogfood error from into-iter-on-array
1 parent 281ff1d commit 587adba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clippy_lints/src/literal_representation.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ impl<'a> DigitInfo<'a> {
210210
.filter(|&c| c != '_')
211211
.collect::<Vec<_>>()
212212
.chunks(group_size)
213-
.map(|chunk| chunk.into_iter().rev().collect())
213+
.map(|chunk| chunk.iter().rev().collect())
214214
.rev()
215215
.collect::<Vec<String>>()
216216
.join("_");
@@ -221,7 +221,7 @@ impl<'a> DigitInfo<'a> {
221221
.filter(|&c| c != '_')
222222
.collect::<Vec<_>>()
223223
.chunks(group_size)
224-
.map(|chunk| chunk.into_iter().collect())
224+
.map(|chunk| chunk.iter().collect())
225225
.collect::<Vec<String>>()
226226
.join("_");
227227
format!(
@@ -238,7 +238,7 @@ impl<'a> DigitInfo<'a> {
238238
.collect::<Vec<_>>();
239239
let mut hint = filtered_digits_vec
240240
.chunks(group_size)
241-
.map(|chunk| chunk.into_iter().rev().collect())
241+
.map(|chunk| chunk.iter().rev().collect())
242242
.rev()
243243
.collect::<Vec<String>>()
244244
.join("_");

0 commit comments

Comments
 (0)