Make clippy happy

This commit is contained in:
Clément Renault 2024-11-27 14:59:04 +01:00
parent cc63802115
commit a514ce472a
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F
2 changed files with 4 additions and 11 deletions

View File

@ -382,19 +382,19 @@ impl<'b> ExtractorBbqueueSender<'b> {
} }
pub fn field_id_docid_facet_sender<'a>(&'a self) -> FieldIdDocidFacetSender<'a, 'b> { pub fn field_id_docid_facet_sender<'a>(&'a self) -> FieldIdDocidFacetSender<'a, 'b> {
FieldIdDocidFacetSender(&self) FieldIdDocidFacetSender(self)
} }
pub fn documents<'a>(&'a self) -> DocumentsSender<'a, 'b> { pub fn documents<'a>(&'a self) -> DocumentsSender<'a, 'b> {
DocumentsSender(&self) DocumentsSender(self)
} }
pub fn embeddings<'a>(&'a self) -> EmbeddingSender<'a, 'b> { pub fn embeddings<'a>(&'a self) -> EmbeddingSender<'a, 'b> {
EmbeddingSender(&self) EmbeddingSender(self)
} }
pub fn geo<'a>(&'a self) -> GeoSender<'a, 'b> { pub fn geo<'a>(&'a self) -> GeoSender<'a, 'b> {
GeoSender(&self) GeoSender(self)
} }
fn delete_vector(&self, docid: DocumentId) -> crate::Result<()> { fn delete_vector(&self, docid: DocumentId) -> crate::Result<()> {

View File

@ -249,10 +249,3 @@ fn merge_cbo_bitmaps(
} }
} }
} }
/// TODO Return the slice directly from the serialize_into method
fn cbo_bitmap_serialize_into_vec<'b>(bitmap: &RoaringBitmap, buffer: &'b mut Vec<u8>) -> &'b [u8] {
buffer.clear();
CboRoaringBitmapCodec::serialize_into(bitmap, buffer);
buffer.as_slice()
}