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 { pub fn is_relevant(code: &str) -> bool {
match Self::map_icd_code(code).as_str() { !matches!(Self::map_icd_code(code).as_str(), "Other")
"Other" => false,
_ => true,
}
} }
fn map_icd_code(code: &str) -> String { fn map_icd_code(code: &str) -> String {