refactor: change match to if matches!

This commit is contained in:
rvcas 2022-12-13 10:25:55 -05:00 committed by Lucas
parent 1637a0d30e
commit 4dfb454d8a
1 changed files with 2 additions and 7 deletions

View File

@ -534,13 +534,8 @@ where
for test in tests {
let path = format!("{}{}", test.module, test.name);
match match_tests.clone() {
None => {}
Some(search_str) => {
if !path.to_string().contains(&search_str) {
continue;
}
}
if matches!(&match_tests, Some(search_str) if !path.to_string().contains(search_str)) {
continue;
}
match test.program.eval(initial_budget) {