From 321b0ce7a693780830780f19de1cdec31657d2db Mon Sep 17 00:00:00 2001 From: boastful-squirrel Date: Thu, 2 May 2019 07:23:38 +0200 Subject: Cargo fmt --- src/auth.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/auth.rs') diff --git a/src/auth.rs b/src/auth.rs index 502c9cb..3989ab4 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -96,10 +96,14 @@ impl Middleware for Auth { Ok(auth_req) => auth_req, Err(err) => { let auth_err = ContextualError::HTTPAuthenticationError(Box::new(err)); - return Ok(Response::Done( - HttpResponse::BadRequest() - .body(build_unauthorized_response(&req, auth_err, true, StatusCode::BAD_REQUEST)), - )); + return Ok(Response::Done(HttpResponse::BadRequest().body( + build_unauthorized_response( + &req, + auth_err, + true, + StatusCode::BAD_REQUEST, + ), + ))); } }; if !match_auth(auth_req, required_auth) { -- cgit v1.2.3