Fix clippy

This commit is contained in:
Alex 2022-05-12 17:11:45 +02:00
parent e7ddba53e3
commit e4e1f8f0d6
Signed by untrusted user: lx
GPG key ID: 0E496D15096376BE
2 changed files with 2 additions and 6 deletions

View file

@ -154,10 +154,6 @@ impl ApiHandler for AdminApiServer {
Endpoint::BucketDenyKey => { Endpoint::BucketDenyKey => {
handle_bucket_change_key_perm(&self.garage, req, false).await handle_bucket_change_key_perm(&self.garage, req, false).await
} }
_ => Err(Error::NotImplemented(format!(
"Admin endpoint {} not implemented yet",
endpoint.name()
))),
} }
} }
} }

View file

@ -349,14 +349,14 @@ pub async fn handle_delete_bucket(
for ((key_id, alias), _, active) in state.local_aliases.items().iter() { for ((key_id, alias), _, active) in state.local_aliases.items().iter() {
if *active { if *active {
helper helper
.unset_local_bucket_alias(bucket.id, &key_id, &alias) .unset_local_bucket_alias(bucket.id, key_id, alias)
.await?; .await?;
} }
} }
// 3. delete all global aliases // 3. delete all global aliases
for (alias, _, active) in state.aliases.items().iter() { for (alias, _, active) in state.aliases.items().iter() {
if *active { if *active {
helper.purge_global_bucket_alias(bucket.id, &alias).await?; helper.purge_global_bucket_alias(bucket.id, alias).await?;
} }
} }