Skip to content

Commit fbd5fb8

Browse files
Rebase: Fix use of HmacOrPrf::None variant
1 parent cd713ab commit fbd5fb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libwebauthn/src/proto/ctap2/model/get_assertion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ impl Ctap2UserVerifiableRequest for Ctap2GetAssertionRequest {
452452
let hmac_requested = self
453453
.extensions
454454
.as_ref()
455-
.map(|e| !matches!(e.hmac_or_prf, GetAssertionHmacOrPrfInput::None))
455+
.map(|e| e.hmac_or_prf.is_some())
456456
.unwrap_or_default();
457457
hmac_requested && hmac_supported
458458
}

0 commit comments

Comments
 (0)