Make cargo fmt happy

This commit is contained in:
Clément Renault 2025-04-01 11:27:41 +02:00
parent 64477aac60
commit a0bfcf8872
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
13 changed files with 29 additions and 38 deletions

View file

@ -269,7 +269,8 @@ fn process_document_tokens<'doc>(
}
// drain the proximity window until the head word is considered close to the word we are inserting.
while word_positions
.front().is_some_and(|(_w, p)| index_proximity(*p as u32, pos as u32) >= MAX_DISTANCE)
.front()
.is_some_and(|(_w, p)| index_proximity(*p as u32, pos as u32) >= MAX_DISTANCE)
{
word_positions_into_word_pair_proximity(word_positions, word_pair_proximity);
}

View file

@ -149,13 +149,11 @@ pub struct IndexingContext<
pub grenad_parameters: &'indexer GrenadParameters,
}
impl<
MSP,
> Copy
impl<MSP> Copy
for IndexingContext<
'_, // invariant lifetime of fields ids map
'_, // invariant lifetime of fields ids map
'_, // covariant lifetime of objects that are borrowed during the entire indexing operation
'_, // covariant lifetime of the index
'_, // covariant lifetime of the index
MSP,
>
where
@ -163,13 +161,11 @@ where
{
}
impl<
MSP,
> Clone
impl<MSP> Clone
for IndexingContext<
'_, // invariant lifetime of fields ids map
'_, // invariant lifetime of fields ids map
'_, // covariant lifetime of objects that are borrowed during the entire indexing operation
'_, // covariant lifetime of the index
'_, // covariant lifetime of the index
MSP,
>
where

View file

@ -210,11 +210,8 @@ fn extract_addition_payload_changes<'r, 'pl: 'r>(
primary_key.as_ref().unwrap()
};
let external_id = retrieved_primary_key.extract_fields_and_docid(
doc,
new_fields_ids_map,
indexer,
)?;
let external_id =
retrieved_primary_key.extract_fields_and_docid(doc, new_fields_ids_map, indexer)?;
let external_id = external_id.to_de();
let current_offset = iter.byte_offset();