diff --git a/src/rules.rs b/src/rules.rs index c56e511..6e58a7b 100644 --- a/src/rules.rs +++ b/src/rules.rs @@ -51,7 +51,7 @@ pub trait HasId { pub fn filter_code(errors: Vec, code: &ErrorCode) -> Vec { errors .into_iter() - .filter(|item| &item.id() == code) + .filter(|item| item.id().0.starts_with(&code.0)) .collect() }