aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-05-12 17:11:45 +0200
committerAlex Auvolat <alex@adnab.me>2022-05-12 17:11:45 +0200
commite4e1f8f0d60545d81c1082ca5f0194962a4a4f79 (patch)
tree9d3bbf1cb3547a44e1b70c200f10ea26ef5c8dbf /src/api/admin
parente7ddba53e38195744fd3bac29eda35fca87ab095 (diff)
downloadgarage-e4e1f8f0d60545d81c1082ca5f0194962a4a4f79.tar.gz
garage-e4e1f8f0d60545d81c1082ca5f0194962a4a4f79.zip
Fix clippy
Diffstat (limited to 'src/api/admin')
-rw-r--r--src/api/admin/api_server.rs4
-rw-r--r--src/api/admin/bucket.rs4
2 files changed, 2 insertions, 6 deletions
diff --git a/src/api/admin/api_server.rs b/src/api/admin/api_server.rs
index b3bc9221..15aa690f 100644
--- a/src/api/admin/api_server.rs
+++ b/src/api/admin/api_server.rs
@@ -154,10 +154,6 @@ impl ApiHandler for AdminApiServer {
Endpoint::BucketDenyKey => {
handle_bucket_change_key_perm(&self.garage, req, false).await
}
- _ => Err(Error::NotImplemented(format!(
- "Admin endpoint {} not implemented yet",
- endpoint.name()
- ))),
}
}
}
diff --git a/src/api/admin/bucket.rs b/src/api/admin/bucket.rs
index 6901f139..2a25bb18 100644
--- a/src/api/admin/bucket.rs
+++ b/src/api/admin/bucket.rs
@@ -349,14 +349,14 @@ pub async fn handle_delete_bucket(
for ((key_id, alias), _, active) in state.local_aliases.items().iter() {
if *active {
helper
- .unset_local_bucket_alias(bucket.id, &key_id, &alias)
+ .unset_local_bucket_alias(bucket.id, key_id, alias)
.await?;
}
}
// 3. delete all global aliases
for (alias, _, active) in state.aliases.items().iter() {
if *active {
- helper.purge_global_bucket_alias(bucket.id, &alias).await?;
+ helper.purge_global_bucket_alias(bucket.id, alias).await?;
}
}