Skip to content

Commit 88469b4

Browse files
committed
fix: use is_none_or instead of map_or for clippy
1 parent 68b3c20 commit 88469b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/commands/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ fn execute_explore_context(
384384
let domains: Vec<DomainInfo> = cache
385385
.domains
386386
.iter()
387-
.filter(|(name, _)| domain_filter.map_or(true, |f| name.contains(f)))
387+
.filter(|(name, _)| domain_filter.is_none_or(|f| name.contains(f)))
388388
.map(|(name, d)| DomainInfo {
389389
name: name.clone(),
390390
file_count: d.files.len(),

0 commit comments

Comments
 (0)