mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 18:45:06 +08: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))
|
Ok((subwriters, all_docids))
|
||||||
}
|
}
|
||||||
|
#[allow(clippy::type_complexity)]
|
||||||
fn read_level_0<'t>(
|
fn read_level_0<'t>(
|
||||||
&self,
|
&self,
|
||||||
rtxn: &'t RoTxn,
|
rtxn: &'t RoTxn,
|
||||||
field_id: u16,
|
field_id: u16,
|
||||||
#[allow(clippy::type_complexity)] handle_group: &mut dyn FnMut(
|
handle_group: &mut dyn FnMut(
|
||||||
&[RoaringBitmap],
|
&[RoaringBitmap],
|
||||||
&'t [u8],
|
&'t [u8],
|
||||||
) -> Result<()>,
|
) -> Result<()>,
|
||||||
@ -248,12 +249,13 @@ impl<R: std::io::Read + std::io::Seek> FacetsUpdateBulkInner<R> {
|
|||||||
/// ## Returns:
|
/// ## Returns:
|
||||||
/// A vector of grenad::Reader. The reader at index `i` corresponds to the elements of level `i + 1`
|
/// 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.
|
/// that must be inserted into the database.
|
||||||
|
#[allow(clippy::type_complexity)]
|
||||||
fn compute_higher_levels<'t>(
|
fn compute_higher_levels<'t>(
|
||||||
&self,
|
&self,
|
||||||
rtxn: &'t RoTxn,
|
rtxn: &'t RoTxn,
|
||||||
field_id: u16,
|
field_id: u16,
|
||||||
level: u8,
|
level: u8,
|
||||||
#[allow(clippy::type_complexity)] handle_group: &mut dyn FnMut(
|
handle_group: &mut dyn FnMut(
|
||||||
&[RoaringBitmap],
|
&[RoaringBitmap],
|
||||||
&'t [u8],
|
&'t [u8],
|
||||||
) -> Result<()>,
|
) -> Result<()>,
|
||||||
|
@ -236,7 +236,7 @@ impl FacetsUpdateIncrementalInner {
|
|||||||
|
|
||||||
let max_group_size = self.max_group_size;
|
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
|
// level below inserted an element
|
||||||
|
|
||||||
let (insertion_key, insertion_value) =
|
let (insertion_key, insertion_value) =
|
||||||
@ -494,7 +494,7 @@ impl FacetsUpdateIncrementalInner {
|
|||||||
let (deletion_key, mut bitmap) =
|
let (deletion_key, mut bitmap) =
|
||||||
self.find_insertion_key_value(field_id, level, facet_value, txn)?;
|
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 mut decrease_size = false;
|
||||||
let next_key = match result {
|
let next_key = match result {
|
||||||
|
Loading…
Reference in New Issue
Block a user