cargo clippy
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pierre HUBERT 2022-08-24 13:38:12 +02:00
parent 4450a21225
commit 34b2e609bd
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ pub async fn save_webauthn_factor(user: CurrentUser, form: web::Json<AddWebauthn
user.add_factor(TwoFactor {
id: FactorID(Uuid::new_v4().to_string()),
name: form.0.factor_name,
kind: TwoFactorType::WEBAUTHN(key),
kind: TwoFactorType::WEBAUTHN(Box::new(key)),
});
let res = users.send(users_actor::UpdateUserRequest(user)).await.unwrap().0;

View File

@ -14,7 +14,7 @@ pub struct FactorID(pub String);
#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)]
pub enum TwoFactorType {
TOTP(TotpKey),
WEBAUTHN(WebauthnPubKey),
WEBAUTHN(Box<WebauthnPubKey>),
}
#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)]