diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2022-07-22 15:38:47 +0000 |
---|---|---|
committer | Sven-Hendrik Haase <svenstaro@gmail.com> | 2022-07-22 15:38:47 +0000 |
commit | 0de1ffa9fe4661a1a5433b11c234487d104251ac (patch) | |
tree | da13b531adfb120d8a45ce76d2941845344e7d26 | |
parent | Bump deps (diff) | |
download | miniserve-0de1ffa9fe4661a1a5433b11c234487d104251ac.tar.gz miniserve-0de1ffa9fe4661a1a5433b11c234487d104251ac.zip |
Update actix-web-httpauth to v0.8
Diffstat (limited to '')
-rw-r--r-- | Cargo.lock | 6 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/auth.rs | 2 |
3 files changed, 5 insertions, 5 deletions
@@ -244,16 +244,16 @@ dependencies = [ [[package]] name = "actix-web-httpauth" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6dc1123f18b3548b9fe90c15e9bd77819701b047c6b62c152230aa39243d40d" +checksum = "6dda62cf04bc3a9ad2ea8f314f721951cfdb4cdacec4e984d20e77c7bb170991" dependencies = [ - "actix-service", "actix-utils", "actix-web", "base64", "futures-core", "futures-util", + "log", "pin-project-lite", ] @@ -20,7 +20,7 @@ panic = 'abort' actix-web = "4" actix-files = "0.6" actix-multipart = "0.4" -actix-web-httpauth = "0.7" +actix-web-httpauth = "0.8" maud = "0.23" yansi = "0.5" simplelog = "0.12" diff --git a/src/auth.rs b/src/auth.rs index b2c01e3..398fdda 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -16,7 +16,7 @@ impl From<BasicAuth> for BasicAuthParams { fn from(auth: BasicAuth) -> Self { Self { username: auth.user_id().to_string(), - password: auth.password().unwrap_or(&"".into()).to_string(), + password: auth.password().unwrap_or_default().to_string(), } } } |