We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44e1802 commit dc3dd52Copy full SHA for dc3dd52
src/oci/mod.rs
@@ -262,7 +262,7 @@ impl<'repo> ImageOp<'repo> {
262
let layers_to_chunks = chunks
263
.iter()
264
.enumerate()
265
- .flat_map(|(i, chunk)| std::iter::repeat(i).take(chunk.len()).collect::<Vec<_>>())
+ .flat_map(|(i, chunk)| std::iter::repeat_n(i, chunk.len()).collect::<Vec<_>>())
266
.collect::<Vec<_>>();
267
268
encoder_threads = encoder_threads.min(chunks.len());
0 commit comments