Skip to content

Commit

Permalink
fixup! fix: apply suggestions from code review (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsastrix committed Aug 9, 2024
1 parent a89d006 commit 549c9dc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/token/cose/crypto_impl/rustcrypto/sign/ecdsa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,7 @@ impl<RNG: RngCore + CryptoRng> RustCryptoContext<RNG> {
} else {
// x must be Some here due to the previous condition.
let pubkey_coord = if let Some(y) = key.y {
EncodedPoint::<CRV>::from_affine_coordinates(
key.x.unwrap().into(),
y.into(),
false,
)
EncodedPoint::<CRV>::from_affine_coordinates(key.x.unwrap().into(), y.into(), false)
} else {
EncodedPoint::<CRV>::from_affine_coordinates(
key.x.unwrap().into(),
Expand Down

0 comments on commit 549c9dc

Please sign in to comment.