mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-27 07:00:05 +01:00
Fix clippy error
This commit is contained in:
parent
a1d7ed1258
commit
d53a80b408
@ -192,11 +192,12 @@ impl<R: std::io::Read + std::io::Seek> FacetsUpdateBulkInner<R> {
|
||||
|
||||
Ok((subwriters, all_docids))
|
||||
}
|
||||
#[allow(clippy::type_complexity)]
|
||||
fn read_level_0<'t>(
|
||||
&self,
|
||||
rtxn: &'t RoTxn,
|
||||
field_id: u16,
|
||||
#[allow(clippy::type_complexity)] handle_group: &mut dyn FnMut(
|
||||
handle_group: &mut dyn FnMut(
|
||||
&[RoaringBitmap],
|
||||
&'t [u8],
|
||||
) -> Result<()>,
|
||||
@ -248,12 +249,13 @@ impl<R: std::io::Read + std::io::Seek> FacetsUpdateBulkInner<R> {
|
||||
/// ## Returns:
|
||||
/// A vector of grenad::Reader. The reader at index `i` corresponds to the elements of level `i + 1`
|
||||
/// that must be inserted into the database.
|
||||
#[allow(clippy::type_complexity)]
|
||||
fn compute_higher_levels<'t>(
|
||||
&self,
|
||||
rtxn: &'t RoTxn,
|
||||
field_id: u16,
|
||||
level: u8,
|
||||
#[allow(clippy::type_complexity)] handle_group: &mut dyn FnMut(
|
||||
handle_group: &mut dyn FnMut(
|
||||
&[RoaringBitmap],
|
||||
&'t [u8],
|
||||
) -> Result<()>,
|
||||
|
@ -236,7 +236,7 @@ impl FacetsUpdateIncrementalInner {
|
||||
|
||||
let max_group_size = self.max_group_size;
|
||||
|
||||
let result = self.insert_in_level(txn, field_id, level - 1, &(*facet_value), docids)?;
|
||||
let result = self.insert_in_level(txn, field_id, level - 1, facet_value, docids)?;
|
||||
// level below inserted an element
|
||||
|
||||
let (insertion_key, insertion_value) =
|
||||
@ -494,7 +494,7 @@ impl FacetsUpdateIncrementalInner {
|
||||
let (deletion_key, mut bitmap) =
|
||||
self.find_insertion_key_value(field_id, level, facet_value, txn)?;
|
||||
|
||||
let result = self.delete_in_level(txn, field_id, level - 1, &(*facet_value), docids)?;
|
||||
let result = self.delete_in_level(txn, field_id, level - 1, facet_value, docids)?;
|
||||
|
||||
let mut decrease_size = false;
|
||||
let next_key = match result {
|
||||
|
Loading…
x
Reference in New Issue
Block a user