Skip to content

Commit

Permalink
chore: Fix clippy warning about redundant map_or usage (#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrzlgnm authored Jan 9, 2025
1 parent 59dfaf6 commit 8eb720f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl ResolvedService {
|| self
.subtype
.as_ref()
.map_or(false, |sub| sub.to_lowercase().contains(&query))
.is_some_and(|sub| sub.to_lowercase().contains(&query))
|| self.txt.iter().any(|txt| txt.matches_query(&query))
}
}
Expand Down

0 comments on commit 8eb720f

Please sign in to comment.