From 9f393cfd9da40081475fa793c8f051519c5f656a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Wed, 27 Oct 2021 23:00:26 +0200 Subject: [PATCH] Formatting --- src/api/core/two_factor/webauthn.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/api/core/two_factor/webauthn.rs b/src/api/core/two_factor/webauthn.rs index c1feab0d..ecc932ca 100644 --- a/src/api/core/two_factor/webauthn.rs +++ b/src/api/core/two_factor/webauthn.rs @@ -32,11 +32,7 @@ impl WebauthnConfig { let domain = CONFIG.domain(); let domain_origin = CONFIG.domain_origin(); Webauthn::new(Self { - rpid: Url::parse(&domain) - .map(|u| u.domain().map(str::to_owned)) - .ok() - .flatten() - .unwrap_or_default(), + rpid: Url::parse(&domain).map(|u| u.domain().map(str::to_owned)).ok().flatten().unwrap_or_default(), url: domain, origin: Url::parse(&domain_origin).unwrap(), })