diff options
author | Alex Auvolat <alex@adnab.me> | 2022-03-14 12:00:23 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-03-14 12:27:49 +0100 |
commit | ba6b56ae68d5842d814769418d484093865261aa (patch) | |
tree | 2620aadaa46718680ba6e66946ca487839335f56 /src/model/key_table.rs | |
parent | 0af314b295f70fdf107524b08063f4d36fb4eeb6 (diff) | |
download | garage-ba6b56ae68d5842d814769418d484093865261aa.tar.gz garage-ba6b56ae68d5842d814769418d484093865261aa.zip |
Fix some new clippy lintsfix-resync
Diffstat (limited to 'src/model/key_table.rs')
-rw-r--r-- | src/model/key_table.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/model/key_table.rs b/src/model/key_table.rs index d5e30f3f..330e83f0 100644 --- a/src/model/key_table.rs +++ b/src/model/key_table.rs @@ -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) } |