Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanpeach committed Dec 17, 2024
1 parent b14e205 commit 8dddb13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub trait HasId {
pub fn filter_code<T: HasId>(errors: Vec<T>, code: &ErrorCode) -> Vec<T> {
errors
.into_iter()
.filter(|item| &item.id() == code)
.filter(|item| item.id().0.starts_with(&code.0))
.collect()
}

Expand Down

0 comments on commit 8dddb13

Please sign in to comment.