From 689c740e8d31bf63f290c7ac95ea88b6a9e3aadc Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Fri, 22 Jun 2018 16:31:25 +0200 Subject: Bump deps --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index 659d529..34714b5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -162,7 +162,7 @@ struct Auth; impl Middleware for Auth { fn response(&self, req: &mut HttpRequest, resp: HttpResponse) -> Result { - if let &Some(ref required_auth) = &req.state().auth { + if let Some(ref required_auth) = req.state().auth { if let Some(auth_headers) = req.headers().get(header::AUTHORIZATION) { let auth_req = match parse_basic_auth(auth_headers) { Ok(auth_req) => auth_req, -- cgit v1.2.3