Skip to content

Commit 772f0ef

Browse files
committed
replace filter with skip and take
1 parent 1a8e0c3 commit 772f0ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build_system/src/test.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,8 @@ where
982982
for path in files
983983
.iter()
984984
.enumerate()
985-
.filter(|(pos, _)| *pos < start || *pos >= end)
985+
.skip(start)
986+
.take(count)
986987
.map(|(_, path)| path)
987988
{
988989
remove_file(&rust_path.join(path))?;

0 commit comments

Comments
 (0)