From 2a4dda3f25d5d4ddfd66a1465122190ebcc4fa48 Mon Sep 17 00:00:00 2001 From: "Kowalski Dragon (kowalski7cc)" Date: Tue, 15 Sep 2026 23:03:29 +0200 Subject: [PATCH] Replace to_string with to_owned Signed-off-by: Kowalski Dragon (kowalski7cc) --- src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index f8369083..d691e8a8 100644 --- a/src/config.rs +++ b/src/config.rs @@ -846,9 +846,9 @@ make_config! { /// Client cache for discovery endpoint. |> Duration in seconds (0 or less to disable). More details: https://github.com/dani-garcia/vaultwarden/wiki/Enabling-SSO-support-using-OpenId-Connect#client-cache sso_client_cache_expiration: u64, true, def, 0; /// Skip 2FA for SSO/social login |> `false` keeps Vaultwarden 2FA, `true` always skips it, `auto` skips it only when the IdP returns an MFA AMR or ACR claim - sso_2fa_skip: String, true, def, "false".to_string(); + sso_2fa_skip: String, true, def, "false".to_owned(); /// SSO 2FA AMR values |> Comma-separated AMR values that satisfy `SSO_2FA_SKIP=auto` - sso_2fa_amr: String, true, def, "mfa,otp,fido2,webauthn,hwk".to_string(); + sso_2fa_amr: String, true, def, "mfa,otp,fido2,webauthn,hwk".to_owned(); /// Log all tokens |> `LOG_LEVEL=debug` or `LOG_LEVEL=info,vaultwarden::sso=debug` is required sso_debug_tokens: bool, true, def, false; },