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