File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -302,15 +302,14 @@ impl StepDescription {
302
302
}
303
303
}
304
304
305
- fn maybe_run ( & self , builder : & Builder < ' _ > , pathsets : Vec < PathSet > ) {
306
- let excluded_pathsets: Vec < PathSet > =
307
- pathsets. iter ( ) . filter ( |set| !self . is_excluded ( builder, set) ) . cloned ( ) . collect ( ) ;
305
+ fn maybe_run ( & self , builder : & Builder < ' _ > , mut pathsets : Vec < PathSet > ) {
306
+ pathsets. retain ( |set| !self . is_excluded ( builder, set) ) ;
308
307
309
308
// Determine the targets participating in this rule.
310
309
let targets = if self . only_hosts { & builder. hosts } else { & builder. targets } ;
311
310
312
311
for target in targets {
313
- let run = RunConfig { builder, paths : excluded_pathsets . clone ( ) , target : * target } ;
312
+ let run = RunConfig { builder, paths : pathsets . clone ( ) , target : * target } ;
314
313
( self . make_run ) ( run) ;
315
314
}
316
315
}
You can’t perform that action at this time.
0 commit comments