aboutsummaryrefslogtreecommitdiffstats
path: root/src/auth.rs
diff options
context:
space:
mode:
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(),
}
}
}