cargo clippy

This commit is contained in:
Pierre HUBERT 2022-04-21 19:26:50 +02:00
parent 49716a8bf5
commit 0f2fe87b5d

View File

@ -62,7 +62,7 @@ impl WebAuthManager {
.expect("Failed to parse configuration origin!"),
relying_party_id: conf.domain_name().split_once(':')
.map(|s| s.0)
.unwrap_or(conf.domain_name())
.unwrap_or_else(|| conf.domain_name())
.to_string(),
}),
crypto_wrapper: CryptoWrapper::new_random(),