Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andylokandy committed Aug 14, 2024
1 parent e8c9b93 commit ee91023
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/filter/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee91023

Please sign in to comment.