From 549c9dcdb3195fa8c8361eb67642633bfaf194f3 Mon Sep 17 00:00:00 2001 From: Hugo Hakim Damer Date: Fri, 9 Aug 2024 18:15:25 +0200 Subject: [PATCH] fixup! fix: apply suggestions from code review (#22) --- src/token/cose/crypto_impl/rustcrypto/sign/ecdsa.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/token/cose/crypto_impl/rustcrypto/sign/ecdsa.rs b/src/token/cose/crypto_impl/rustcrypto/sign/ecdsa.rs index 7976d87..15a8db8 100644 --- a/src/token/cose/crypto_impl/rustcrypto/sign/ecdsa.rs +++ b/src/token/cose/crypto_impl/rustcrypto/sign/ecdsa.rs @@ -164,11 +164,7 @@ impl RustCryptoContext { } else { // x must be Some here due to the previous condition. let pubkey_coord = if let Some(y) = key.y { - EncodedPoint::::from_affine_coordinates( - key.x.unwrap().into(), - y.into(), - false, - ) + EncodedPoint::::from_affine_coordinates(key.x.unwrap().into(), y.into(), false) } else { EncodedPoint::::from_affine_coordinates( key.x.unwrap().into(),