refactor: use matches!() macro

This commit is contained in:
2024-02-28 17:13:32 +01:00
parent 2297e20cba
commit 5a162bc502

View File

@ -76,10 +76,7 @@ impl Check {
}
pub fn is_relevant(code: &str) -> bool {
match Self::map_icd_code(code).as_str() {
"Other" => false,
_ => true,
}
!matches!(Self::map_icd_code(code).as_str(), "Other")
}
fn map_icd_code(code: &str) -> String {