diff --git a/src/main.rs b/src/main.rs index 916b17d..a94b818 100644 --- a/src/main.rs +++ b/src/main.rs @@ -283,11 +283,10 @@ fn main() -> Result<(), Box> { "Es wurden {} Probleme gefunden\n", notices .iter() - .filter(|notice| match notice { - CheckNotice::ErrorWithCode { .. } - | CheckNotice::Error { .. } => true, - _ => false, - }) + .filter(|notice| matches!( + notice, + CheckNotice::ErrorWithCode { .. } | CheckNotice::Error { .. } + )) .count() ); notices