From a493a50825fd73ef7231fbad08abd308414867fd Mon Sep 17 00:00:00 2001 From: ManyTheFish Date: Thu, 22 Feb 2024 14:53:33 +0100 Subject: [PATCH] Fix clippy --- milli/src/update/facet/incremental.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/milli/src/update/facet/incremental.rs b/milli/src/update/facet/incremental.rs index d68540967..584870a7a 100644 --- a/milli/src/update/facet/incremental.rs +++ b/milli/src/update/facet/incremental.rs @@ -201,7 +201,7 @@ impl FacetsUpdateIncrementalInner { match (old_value, add_docids, del_docids) { // Addition + deletion on an existing value (Some(FacetGroupValue { bitmap, .. }), Some(add_docids), Some(del_docids)) => { - let value = FacetGroupValue { bitmap: bitmap - del_docids | add_docids, size: 1 }; + let value = FacetGroupValue { bitmap: (bitmap - del_docids) | add_docids, size: 1 }; self.db.put(txn, &key, &value)?; Ok(ModificationResult::InPlace) } @@ -575,7 +575,7 @@ impl FacetsUpdateIncrementalInner { fn delete_level(&self, txn: &mut RwTxn, highest_level_prefix: &[u8]) -> Result<()> { let mut to_delete = vec![]; let mut iter = - self.db.remap_types::().prefix_iter(txn, &highest_level_prefix)?; + self.db.remap_types::().prefix_iter(txn, highest_level_prefix)?; for el in iter.by_ref() { let (k, _) = el?; to_delete.push( @@ -603,7 +603,7 @@ impl FacetsUpdateIncrementalInner { let mut groups_iter = self .db .remap_types::() - .prefix_iter(txn, &highest_level_prefix)?; + .prefix_iter(txn, highest_level_prefix)?; let nbr_new_groups = size_highest_level / self.group_size as usize; let nbr_leftover_elements = size_highest_level % self.group_size as usize;