aboutsummaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorTrinity Pointard <trinity.pointard@gmail.com>2021-11-11 15:37:48 +0100
committerGitea <gitea@fake.local>2021-11-16 15:41:41 +0100
commit396fe4c702eecbe3421cac57242ace78e366ed98 (patch)
tree996e26f02727af48df0ed7bb60874b6619956af8 /src/api
parent02158ee666390b0da964af09ce2e894e13e29fc5 (diff)
downloadgarage-396fe4c702eecbe3421cac57242ace78e366ed98.tar.gz
garage-396fe4c702eecbe3421cac57242ace78e366ed98.zip
clippy
Diffstat (limited to 'src/api')
-rw-r--r--src/api/api_server.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/api_server.rs b/src/api/api_server.rs
index ab690c30..b67ebef7 100644
--- a/src/api/api_server.rs
+++ b/src/api/api_server.rs
@@ -98,7 +98,7 @@ async fn handler_inner(garage: Arc<Garage>, req: Request<Body>) -> Result<Respon
.s3_api
.root_domain
.as_ref()
- .and_then(|root_domain| host_to_bucket(&host, &root_domain));
+ .and_then(|root_domain| host_to_bucket(&host, root_domain));
if path == "/" && bucket.is_none() {
return handle_list_buckets(&api_key);