mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Fix some of the edition 2024 warnings
This commit is contained in:
parent
2762d5a32a
commit
aa87064a13
82 changed files with 323 additions and 317 deletions
|
@ -577,14 +577,14 @@ fn export_documents(
|
|||
return Err(meilisearch_types::milli::Error::UserError(
|
||||
meilisearch_types::milli::UserError::InvalidVectorsMapType {
|
||||
document_id: {
|
||||
if let Ok(Some(Ok(index))) = index
|
||||
match index
|
||||
.external_id_of(&rtxn, std::iter::once(id))
|
||||
.map(|it| it.into_iter().next())
|
||||
{
|
||||
{ Ok(Some(Ok(index))) => {
|
||||
index
|
||||
} else {
|
||||
} _ => {
|
||||
format!("internal docid={id}")
|
||||
}
|
||||
}}
|
||||
},
|
||||
value: vectors.clone(),
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue