mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-06 04:36:32 +00:00
Fix trivial clippy warnings
This commit is contained in:
@ -330,7 +330,7 @@ struct Compat<T: steppe::Step>(T);
|
|||||||
|
|
||||||
impl<T: steppe::Step> Step for Compat<T> {
|
impl<T: steppe::Step> Step for Compat<T> {
|
||||||
fn name(&self) -> Cow<'static, str> {
|
fn name(&self) -> Cow<'static, str> {
|
||||||
self.0.name().into()
|
self.0.name()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn current(&self) -> u32 {
|
fn current(&self) -> u32 {
|
||||||
|
@ -796,10 +796,10 @@ impl<'a> Filter<'a> {
|
|||||||
);
|
);
|
||||||
let result = index
|
let result = index
|
||||||
.cellulite
|
.cellulite
|
||||||
.in_shape(rtxn, &polygon.into(), &mut |_| ())
|
.in_shape(rtxn, &polygon, &mut |_| ())
|
||||||
.map_err(InternalError::CelluliteError)?;
|
.map_err(InternalError::CelluliteError)?;
|
||||||
// TODO: Remove once we update roaring
|
// TODO: Remove once we update roaring
|
||||||
let result = roaring::RoaringBitmap::from_iter(result.into_iter());
|
let result = roaring::RoaringBitmap::from_iter(result);
|
||||||
Ok(result)
|
Ok(result)
|
||||||
} else {
|
} else {
|
||||||
Err(points[0][0].as_external_error(FilterError::AttributeNotFilterable {
|
Err(points[0][0].as_external_error(FilterError::AttributeNotFilterable {
|
||||||
|
Reference in New Issue
Block a user