diff options
author | Alex Auvolat <lx@deuxfleurs.fr> | 2025-01-28 15:44:14 +0100 |
---|---|---|
committer | Alex Auvolat <lx@deuxfleurs.fr> | 2025-01-29 19:26:16 +0100 |
commit | af1a53083452e7953736261db57aea4a68aa4278 (patch) | |
tree | f28c1a8b8f70b532ad1f3234a567d6bc5abac537 /src/api/admin/router_v2.rs | |
parent | c99bfe69ea19497895d32669fd15c689b86035d8 (diff) | |
download | garage-af1a53083452e7953736261db57aea4a68aa4278.tar.gz garage-af1a53083452e7953736261db57aea4a68aa4278.zip |
admin api: refactor using macro
Diffstat (limited to 'src/api/admin/router_v2.rs')
-rw-r--r-- | src/api/admin/router_v2.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/admin/router_v2.rs b/src/api/admin/router_v2.rs index 9d203500..f9a976c4 100644 --- a/src/api/admin/router_v2.rs +++ b/src/api/admin/router_v2.rs @@ -15,7 +15,7 @@ impl AdminApiRequest { /// Determine which S3 endpoint a request is for using the request, and a bucket which was /// possibly extracted from the Host header. /// Returns Self plus bucket name, if endpoint is not Endpoint::ListBuckets - pub async fn from_request<T>(req: Request<IncomingBody>) -> Result<Self, Error> { + pub async fn from_request(req: Request<IncomingBody>) -> Result<Self, Error> { let uri = req.uri().clone(); let path = uri.path(); let query = uri.query(); |