Skip to content

Commit dc3dd52

Browse files
Fix more clippy warnings
Signed-off-by: Pragyan Poudyal <[email protected]>
1 parent 44e1802 commit dc3dd52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/oci/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ impl<'repo> ImageOp<'repo> {
262262
let layers_to_chunks = chunks
263263
.iter()
264264
.enumerate()
265-
.flat_map(|(i, chunk)| std::iter::repeat(i).take(chunk.len()).collect::<Vec<_>>())
265+
.flat_map(|(i, chunk)| std::iter::repeat_n(i, chunk.len()).collect::<Vec<_>>())
266266
.collect::<Vec<_>>();
267267

268268
encoder_threads = encoder_threads.min(chunks.len());

0 commit comments

Comments
 (0)