diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2018-06-22 14:31:25 +0000 |
---|---|---|
committer | Sven-Hendrik Haase <svenstaro@gmail.com> | 2018-06-22 14:31:25 +0000 |
commit | 689c740e8d31bf63f290c7ac95ea88b6a9e3aadc (patch) | |
tree | 8013bd396a0826291a4812e898671d2dc09a163e /src | |
parent | Bump Cargo.lock (diff) | |
download | miniserve-689c740e8d31bf63f290c7ac95ea88b6a9e3aadc.tar.gz miniserve-689c740e8d31bf63f290c7ac95ea88b6a9e3aadc.zip |
Bump deps
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<MiniserveConfig> for Auth { fn response(&self, req: &mut HttpRequest<MiniserveConfig>, resp: HttpResponse) -> Result<Response> { - 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, |