mirror of
https://github.com/pcvolkmer/bzkf-rwdp-check.git
synced 2025-07-01 15:52:54 +00:00
refactor: use matches!() macro
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user