fix clippy warnings

This commit is contained in:
Marin Postma
2021-04-27 17:51:12 +02:00
parent 4fe2a13c71
commit a961f0ce75
6 changed files with 10 additions and 31 deletions

View File

@ -44,11 +44,7 @@ impl IndexMeta {
let created_at = index.created_at(&txn)?;
let updated_at = index.updated_at(&txn)?;
let primary_key = index.primary_key(&txn)?.map(String::from);
Ok(Self {
primary_key,
updated_at,
created_at,
})
Ok(Self { created_at, updated_at, primary_key })
}
}