Skip to content

Commit 2a36f58

Browse files
authored
Merge pull request #416 from Liewyec/feature/improve-iterator-for-file-suppression
Improve iterator for files suppression
2 parents e747d42 + 599492a commit 2a36f58

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

build_system/src/test.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -990,12 +990,7 @@ where
990990
let start = current_part * count;
991991
let end = current_part * count + count;
992992
// We remove the files we don't want to test.
993-
for path in files
994-
.iter()
995-
.enumerate()
996-
.filter(|(pos, _)| *pos < start || *pos >= end)
997-
.map(|(_, path)| path)
998-
{
993+
for path in files.iter().skip(start).take(count) {
999994
remove_file(&rust_path.join(path))?;
1000995
}
1001996
}

0 commit comments

Comments
 (0)