Skip to content

Commit

Permalink
Fix clippy (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
tellet-q authored Jan 10, 2025
1 parent 509c5e8 commit 4741b6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/filters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl From<NestedCondition> for Condition {
!&nested_condition
.filter
.as_ref()
.map_or(false, |f| f.check_has_id()),
.is_some_and(|f| f.check_has_id()),
"Filters containing a `has_id` condition are not supported for nested filtering."
);

Expand All @@ -84,7 +84,7 @@ impl qdrant::Filter {
Some(ConditionOneOf::Nested(nested)) => nested
.filter
.as_ref()
.map_or(false, |filter| filter.check_has_id()),
.is_some_and(|filter| filter.check_has_id()),
Some(ConditionOneOf::Filter(filter)) => filter.check_has_id(),
_ => false,
})
Expand Down

0 comments on commit 4741b6d

Please sign in to comment.