Browse Source

fix clippy warnings

pull/5934/head
zUnixorn 1 month ago
committed by Mathijs van Veluw
parent
commit
90798c45ee
  1. 2
      src/api/core/two_factor/webauthn.rs
  2. 1
      src/db/models/two_factor.rs

2
src/api/core/two_factor/webauthn.rs

@ -127,7 +127,7 @@ async fn generate_webauthn_challenge(data: Json<PasswordOrOtpData>, headers: Hea
// TODO handle errors // TODO handle errors
let (mut challenge, state) = webauthn.start_passkey_registration( let (mut challenge, state) = webauthn.start_passkey_registration(
Uuid::from_str(&*user.uuid).unwrap(), Uuid::from_str(&user.uuid).unwrap(),
&user.email, &user.email,
&user.name, &user.name,
Some(registrations), Some(registrations),

1
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 // Copied from https://docs.rs/webauthn-rs/0.3.2/src/webauthn_rs/proto.rs.html#260-278
#[allow(non_camel_case_types)] #[allow(non_camel_case_types)]
#[allow(clippy::upper_case_acronyms)]
#[derive(Deserialize)] #[derive(Deserialize)]
pub enum COSEKeyType { pub enum COSEKeyType {
EC_OKP, EC_OKP,

Loading…
Cancel
Save