Skip to content

Commit afbec71

Browse files
committed
Fix clippy
1 parent 509c5e8 commit afbec71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/filters.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl From<NestedCondition> for Condition {
6161
!&nested_condition
6262
.filter
6363
.as_ref()
64-
.map_or(false, |f| f.check_has_id()),
64+
.is_some_and(|f| f.check_has_id()),
6565
"Filters containing a `has_id` condition are not supported for nested filtering."
6666
);
6767

@@ -84,7 +84,7 @@ impl qdrant::Filter {
8484
Some(ConditionOneOf::Nested(nested)) => nested
8585
.filter
8686
.as_ref()
87-
.map_or(false, |filter| filter.check_has_id()),
87+
.is_some_and(|filter| filter.check_has_id()),
8888
Some(ConditionOneOf::Filter(filter)) => filter.check_has_id(),
8989
_ => false,
9090
})

0 commit comments

Comments
 (0)