From 0de1ffa9fe4661a1a5433b11c234487d104251ac Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Fri, 22 Jul 2022 17:38:47 +0200 Subject: Update actix-web-httpauth to v0.8 --- src/auth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 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(), } } } -- cgit v1.2.3