Make clippy happy

This commit is contained in:
Clément Renault 2025-06-16 14:53:50 +02:00
parent 4ce1621bb3
commit ba84865dbc
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F

View File

@ -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,