Some clippy related fixes

This commit is contained in:
Louis Dureuil 2024-10-14 10:58:37 +02:00
parent 6028d6ba43
commit 8371819114
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View File

@ -278,7 +278,7 @@ pub trait Extractor<'extractor>: Sync {
pub trait DocumentChanges<'pl // lifetime of the underlying payload pub trait DocumentChanges<'pl // lifetime of the underlying payload
>: Sync { >: Sync {
type Item; type Item: Send;
fn iter(&self) -> impl IndexedParallelIterator<Item = Self::Item>; fn iter(&self) -> impl IndexedParallelIterator<Item = Self::Item>;

View File

@ -131,7 +131,7 @@ impl<'pl> DocumentOperation<'pl> {
None => { None => {
let (docid, is_new) = match index let (docid, is_new) = match index
.external_documents_ids() .external_documents_ids()
.get(rtxn, &external_document_id)? .get(rtxn, external_document_id)?
{ {
Some(docid) => (docid, false), Some(docid) => (docid, false),
None => ( None => (
@ -401,7 +401,7 @@ impl MergeChanges for MergeDocumentForUpdates {
let versions = versions.into_bump_slice(); let versions = versions.into_bump_slice();
let versions = match versions { let versions = match versions {
[single] => Versions::Single(*single), [single] => Versions::Single(single),
versions => Versions::Multiple(versions), versions => Versions::Multiple(versions),
}; };

View File

@ -67,7 +67,7 @@ where
let fields_ids_map = fields_ids_map.deref_mut(); let fields_ids_map = fields_ids_map.deref_mut();
let res = document let res = document
.deserialize_map(DocumentVisitor::new(fields_ids_map, self.primary_key, &doc_alloc)) .deserialize_map(DocumentVisitor::new(fields_ids_map, self.primary_key, doc_alloc))
.map_err(UserError::SerdeJson)?; .map_err(UserError::SerdeJson)?;
let external_document_id = match res { let external_document_id = match res {