aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2022-07-22 15:38:47 +0000
committerSven-Hendrik Haase <svenstaro@gmail.com>2022-07-22 15:38:47 +0000
commit0de1ffa9fe4661a1a5433b11c234487d104251ac (patch)
treeda13b531adfb120d8a45ce76d2941845344e7d26 /src
parentBump deps (diff)
downloadminiserve-0de1ffa9fe4661a1a5433b11c234487d104251ac.tar.gz
miniserve-0de1ffa9fe4661a1a5433b11c234487d104251ac.zip
Update actix-web-httpauth to v0.8
Diffstat (limited to '')
-rw-r--r--src/auth.rs2
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(),
}
}
}