From 8dddb13f726a100ab7bb82a369ae69b26f932559 Mon Sep 17 00:00:00 2001 From: Ryan Peach Date: Tue, 17 Dec 2024 06:18:05 -0500 Subject: [PATCH] Fix tests --- src/rules.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() }