Skip to content

Commit eb95be7

Browse files
committed
Clippy fixes
1 parent 5bb8adb commit eb95be7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/haystack/defs/namespace.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ impl Namespace {
429429
Value::Symbol(sym) => self.get(sym),
430430
_ => None,
431431
})
432-
.filter(|target| inheritance.map_or(false, |s| s.contains(target.def_symbol())))
432+
.filter(|target| inheritance.is_some_and(|s| s.contains(target.def_symbol())))
433433
.for_each(|_| {
434434
matches.insert(def);
435435
});
@@ -569,7 +569,7 @@ impl Namespace {
569569
pub fn fits(&self, def: &Symbol, base_def: &Symbol) -> bool {
570570
self.inheritance_map
571571
.get(def)
572-
.map_or(false, |s| s.contains(base_def))
572+
.is_some_and(|s| s.contains(base_def))
573573
}
574574

575575
/// Return true if the specified def is a marker.

0 commit comments

Comments
 (0)