Fix trivial clippy warnings

This commit is contained in:
Mubelotix
2025-08-14 13:50:18 +02:00
parent d8de09f23d
commit 1e794f5dfd
2 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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 {