Merge pull request #416 from Liewyec/feature/improve-iterator-for-file-suppression
Improve iterator for files suppression
This commit is contained in:
commit
2a36f58475
1 changed files with 1 additions and 6 deletions
|
|
@ -990,12 +990,7 @@ where
|
|||
let start = current_part * count;
|
||||
let end = current_part * count + count;
|
||||
// We remove the files we don't want to test.
|
||||
for path in files
|
||||
.iter()
|
||||
.enumerate()
|
||||
.filter(|(pos, _)| *pos < start || *pos >= end)
|
||||
.map(|(_, path)| path)
|
||||
{
|
||||
for path in files.iter().skip(start).take(count) {
|
||||
remove_file(&rust_path.join(path))?;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue