Fix trivial clippy warnings

This commit is contained in:
Mubelotix
2025-08-14 13:50:18 +02:00
committed by Tamo
parent e719c8bf03
commit e45e98ba3f
2 changed files with 3 additions and 3 deletions

View File

@ -356,7 +356,7 @@ struct Compat<T: steppe::Step>(T);
impl<T: steppe::Step> Step for Compat<T> {
fn name(&self) -> Cow<'static, str> {
self.0.name().into()
self.0.name()
}
fn current(&self) -> u32 {

View File

@ -844,10 +844,10 @@ impl<'a> Filter<'a> {
);
let result = index
.cellulite
.in_shape(rtxn, &polygon.into(), &mut |_| ())
.in_shape(rtxn, &polygon, &mut |_| ())
.map_err(InternalError::CelluliteError)?;
// TODO: Remove once we update roaring
let result = roaring::RoaringBitmap::from_iter(result.into_iter());
let result = roaring::RoaringBitmap::from_iter(result);
Ok(result)
} else {
Err(points[0][0].as_external_error(FilterError::AttributeNotFilterable {