refactor: change match to if matches!
This commit is contained in:
parent
1637a0d30e
commit
4dfb454d8a
|
@ -534,14 +534,9 @@ where
|
||||||
for test in tests {
|
for test in tests {
|
||||||
let path = format!("{}{}", test.module, test.name);
|
let path = format!("{}{}", test.module, test.name);
|
||||||
|
|
||||||
match match_tests.clone() {
|
if matches!(&match_tests, Some(search_str) if !path.to_string().contains(search_str)) {
|
||||||
None => {}
|
|
||||||
Some(search_str) => {
|
|
||||||
if !path.to_string().contains(&search_str) {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
match test.program.eval(initial_budget) {
|
match test.program.eval(initial_budget) {
|
||||||
(Ok(..), remaining_budget, _) => {
|
(Ok(..), remaining_budget, _) => {
|
||||||
|
|
Loading…
Reference in New Issue