fix: filter on regular iter before par iter cc @kprotty

This commit is contained in:
rvcas 2023-01-09 18:21:40 -05:00
parent 158b3dfe51
commit 6a95d23811
No known key found for this signature in database
GPG Key ID: C09B64E263F7D68C
1 changed files with 3 additions and 1 deletions

View File

@ -703,12 +703,14 @@ where
};
scripts
.into_par_iter()
.into_iter()
.filter(|script| -> bool {
let path = format!("{}{}", script.module, script.name);
!matches!(&match_name, Some(search_str) if !path.contains(search_str))
})
.collect::<Vec<Script>>()
.into_par_iter()
.map(|script| match script.program.eval(initial_budget) {
(Ok(result), remaining_budget, logs) => EvalInfo {
success: result != Term::Error