aboutsummaryrefslogtreecommitdiff
path: root/src/api/api_server.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-07-08 13:33:02 +0200
committerAlex Auvolat <alex@adnab.me>2020-07-08 13:33:02 +0200
commit86fb7bbba5aefc797f359bd84676637f0232b709 (patch)
tree22e90454f0c5ccd50a0e9dbdeec516ddd7955edf /src/api/api_server.rs
parentf22ecb60a8e1848de95e1bd3104b0ceec7058f0c (diff)
downloadgarage-86fb7bbba5aefc797f359bd84676637f0232b709.tar.gz
garage-86fb7bbba5aefc797f359bd84676637f0232b709.zip
Apply cargo fmt; add trace output when request signature is bad
Diffstat (limited to 'src/api/api_server.rs')
-rw-r--r--src/api/api_server.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/api/api_server.rs b/src/api/api_server.rs
index 92a9f2a6..8ace2b52 100644
--- a/src/api/api_server.rs
+++ b/src/api/api_server.rs
@@ -67,10 +67,7 @@ async fn handler(
}
}
-async fn handler_inner(
- garage: Arc<Garage>,
- req: Request<Body>,
-) -> Result<Response<Body>, Error> {
+async fn handler_inner(garage: Arc<Garage>, req: Request<Body>) -> Result<Response<Body>, Error> {
let path = req.uri().path().to_string();
let path = percent_encoding::percent_decode_str(&path).decode_utf8()?;