mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-23 05:14:27 +01:00
Some clippy related fixes
This commit is contained in:
parent
6028d6ba43
commit
8371819114
@ -278,7 +278,7 @@ pub trait Extractor<'extractor>: Sync {
|
||||
|
||||
pub trait DocumentChanges<'pl // lifetime of the underlying payload
|
||||
>: Sync {
|
||||
type Item;
|
||||
type Item: Send;
|
||||
|
||||
fn iter(&self) -> impl IndexedParallelIterator<Item = Self::Item>;
|
||||
|
||||
|
@ -131,7 +131,7 @@ impl<'pl> DocumentOperation<'pl> {
|
||||
None => {
|
||||
let (docid, is_new) = match index
|
||||
.external_documents_ids()
|
||||
.get(rtxn, &external_document_id)?
|
||||
.get(rtxn, external_document_id)?
|
||||
{
|
||||
Some(docid) => (docid, false),
|
||||
None => (
|
||||
@ -401,7 +401,7 @@ impl MergeChanges for MergeDocumentForUpdates {
|
||||
|
||||
let versions = versions.into_bump_slice();
|
||||
let versions = match versions {
|
||||
[single] => Versions::Single(*single),
|
||||
[single] => Versions::Single(single),
|
||||
versions => Versions::Multiple(versions),
|
||||
};
|
||||
|
||||
|
@ -67,7 +67,7 @@ where
|
||||
let fields_ids_map = fields_ids_map.deref_mut();
|
||||
|
||||
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)?;
|
||||
|
||||
let external_document_id = match res {
|
||||
|
Loading…
Reference in New Issue
Block a user