We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 509c5e8 commit afbec71Copy full SHA for afbec71
src/filters.rs
@@ -61,7 +61,7 @@ impl From<NestedCondition> for Condition {
61
!&nested_condition
62
.filter
63
.as_ref()
64
- .map_or(false, |f| f.check_has_id()),
+ .is_some_and(|f| f.check_has_id()),
65
"Filters containing a `has_id` condition are not supported for nested filtering."
66
);
67
@@ -84,7 +84,7 @@ impl qdrant::Filter {
84
Some(ConditionOneOf::Nested(nested)) => nested
85
86
87
- .map_or(false, |filter| filter.check_has_id()),
+ .is_some_and(|filter| filter.check_has_id()),
88
Some(ConditionOneOf::Filter(filter)) => filter.check_has_id(),
89
_ => false,
90
})
0 commit comments