From b448c1020782ca797d209bfc4cfed675e0ac70a3 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Sat, 11 Nov 2023 16:22:34 -0700 Subject: [PATCH] clippy fixes --- elliptic-curve/src/lib.rs | 1 - elliptic-curve/src/secret_key.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/elliptic-curve/src/lib.rs b/elliptic-curve/src/lib.rs index 5f2a6c62e..b0ad188de 100644 --- a/elliptic-curve/src/lib.rs +++ b/elliptic-curve/src/lib.rs @@ -14,7 +14,6 @@ clippy::cast_sign_loss, clippy::checked_conversions, clippy::implicit_saturating_sub, - clippy::integer_arithmetic, clippy::mod_module_files, clippy::panic, clippy::panic_in_result_fn, diff --git a/elliptic-curve/src/secret_key.rs b/elliptic-curve/src/secret_key.rs index 607589a75..502f8153b 100644 --- a/elliptic-curve/src/secret_key.rs +++ b/elliptic-curve/src/secret_key.rs @@ -184,7 +184,7 @@ where } /// Deserialize secret key encoded in the SEC1 ASN.1 DER `ECPrivateKey` format. - #[cfg(all(feature = "sec1"))] + #[cfg(feature = "sec1")] pub fn from_sec1_der(der_bytes: &[u8]) -> Result where C: Curve + ValidatePublicKey, @@ -344,7 +344,7 @@ where } } -#[cfg(all(feature = "sec1"))] +#[cfg(feature = "sec1")] impl TryFrom> for SecretKey where C: Curve + ValidatePublicKey,