mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Make clippy happy
This commit is contained in:
parent
acb7c0a449
commit
7c448bcc00
1 changed files with 3 additions and 3 deletions
|
@ -289,7 +289,7 @@ impl KindWithContent {
|
|||
KindWithContent::Export { url, api_key, indexes } => Some(Details::Export {
|
||||
url: url.clone(),
|
||||
api_key: api_key.clone(),
|
||||
indexes: indexes.into_iter().map(|(p, s)| (p.clone(), s.clone().into())).collect(),
|
||||
indexes: indexes.iter().map(|(p, s)| (p.clone(), s.clone().into())).collect(),
|
||||
}),
|
||||
KindWithContent::UpgradeDatabase { from } => Some(Details::UpgradeDatabase {
|
||||
from: (from.0, from.1, from.2),
|
||||
|
@ -360,7 +360,7 @@ impl KindWithContent {
|
|||
KindWithContent::Export { url, api_key, indexes } => Some(Details::Export {
|
||||
url: url.clone(),
|
||||
api_key: api_key.clone(),
|
||||
indexes: indexes.into_iter().map(|(p, s)| (p.clone(), s.clone().into())).collect(),
|
||||
indexes: indexes.iter().map(|(p, s)| (p.clone(), s.clone().into())).collect(),
|
||||
}),
|
||||
KindWithContent::UpgradeDatabase { from } => Some(Details::UpgradeDatabase {
|
||||
from: *from,
|
||||
|
@ -413,7 +413,7 @@ impl From<&KindWithContent> for Option<Details> {
|
|||
KindWithContent::Export { url, api_key, indexes } => Some(Details::Export {
|
||||
url: url.clone(),
|
||||
api_key: api_key.clone(),
|
||||
indexes: indexes.into_iter().map(|(p, s)| (p.clone(), s.clone().into())).collect(),
|
||||
indexes: indexes.iter().map(|(p, s)| (p.clone(), s.clone().into())).collect(),
|
||||
}),
|
||||
KindWithContent::UpgradeDatabase { from } => Some(Details::UpgradeDatabase {
|
||||
from: *from,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue