diff --git a/src/api/core/two_factor/webauthn.rs b/src/api/core/two_factor/webauthn.rs index 19a79c7c..8bf58e33 100644 --- a/src/api/core/two_factor/webauthn.rs +++ b/src/api/core/two_factor/webauthn.rs @@ -127,7 +127,7 @@ async fn generate_webauthn_challenge(data: Json, headers: Hea // TODO handle errors let (mut challenge, state) = webauthn.start_passkey_registration( - Uuid::from_str(&*user.uuid).unwrap(), + Uuid::from_str(&user.uuid).unwrap(), &user.email, &user.name, Some(registrations), diff --git a/src/db/models/two_factor.rs b/src/db/models/two_factor.rs index d43dda33..13153e8c 100644 --- a/src/db/models/two_factor.rs +++ b/src/db/models/two_factor.rs @@ -111,6 +111,7 @@ mod webauthn_0_3 { // Copied from https://docs.rs/webauthn-rs/0.3.2/src/webauthn_rs/proto.rs.html#260-278 #[allow(non_camel_case_types)] + #[allow(clippy::upper_case_acronyms)] #[derive(Deserialize)] pub enum COSEKeyType { EC_OKP,