Fix some new clippy lints

This commit is contained in:
Alex Auvolat
2022-03-14 12:00:23 +01:00
parent 0af314b295
commit ba6b56ae68
14 changed files with 22 additions and 37 deletions
+1 -2
View File
@@ -106,8 +106,7 @@ impl Key {
/// Get permissions for a bucket
pub fn bucket_permissions(&self, bucket: &Uuid) -> BucketKeyPerm {
self.params()
.map(|params| params.authorized_buckets.get(bucket))
.flatten()
.and_then(|params| params.authorized_buckets.get(bucket))
.cloned()
.unwrap_or(BucketKeyPerm::NO_PERMISSIONS)
}