Browse Source

fix cargo fmt issue

pull/5934/head
zUnixorn 1 week ago
parent
commit
a4c52d1d9d
No known key found for this signature in database GPG Key ID: BE3A9CAE3E8D0DA
  1. 3
      src/db/models/two_factor.rs

3
src/db/models/two_factor.rs

@ -242,8 +242,7 @@ impl TwoFactor {
for webauthn_factor in webauthn_factors {
// assume that a failure to parse into the old struct, means that it was already converted
// alternatively this could also be checked via an extra field in the db
let Ok(regs) = serde_json::from_str::<Vec<WebauthnRegistrationV3>>(&webauthn_factor.data)
else {
let Ok(regs) = serde_json::from_str::<Vec<WebauthnRegistrationV3>>(&webauthn_factor.data) else {
continue;
};

Loading…
Cancel
Save