Fix lots of clippy lints

This commit is contained in:
Jonas Platte
2021-06-17 20:34:14 +02:00
parent af2ce5803e
commit f3e630c064
17 changed files with 140 additions and 202 deletions

View File

@@ -119,9 +119,8 @@ impl KeyBackups {
self.backupid_algorithm
.get(&key)?
.map_or(Ok(None), |bytes| {
Ok(serde_json::from_slice(&bytes).map_err(|_| {
Error::bad_database("Algorithm in backupid_algorithm is invalid.")
})?)
serde_json::from_slice(&bytes)
.map_err(|_| Error::bad_database("Algorithm in backupid_algorithm is invalid."))
})
}