From ee91023e666653d49d661930989d2e08a02dc2f1 Mon Sep 17 00:00:00 2001 From: andylokandy Date: Wed, 14 Aug 2024 17:21:08 +0800 Subject: [PATCH] fix --- src/filter/target.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filter/target.rs b/src/filter/target.rs index cab46a3..e3f223d 100644 --- a/src/filter/target.rs +++ b/src/filter/target.rs @@ -50,8 +50,8 @@ impl TargetFilter { } pub(crate) fn filter(&self, metadata: &Metadata) -> FilterResult { - let mathced = metadata.target().starts_with(self.target.as_ref()); - if (mathced && !self.not) || (!mathced && self.not) { + let matched = metadata.target().starts_with(self.target.as_ref()); + if (matched && !self.not) || (!matched && self.not) { let level = metadata.level(); if level <= self.level { FilterResult::Neutral