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 /src | |
parent | Bump deps (diff) | |
download | miniserve-0de1ffa9fe4661a1a5433b11c234487d104251ac.tar.gz miniserve-0de1ffa9fe4661a1a5433b11c234487d104251ac.zip |
Update actix-web-httpauth to v0.8
Diffstat (limited to 'src')
-rw-r--r-- | src/auth.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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(), } } } |