diff options
Diffstat (limited to 'vendor/crypto-bigint/src/limb.rs')
-rw-r--r-- | vendor/crypto-bigint/src/limb.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/crypto-bigint/src/limb.rs b/vendor/crypto-bigint/src/limb.rs index 73f3feed9..a5ca95704 100644 --- a/vendor/crypto-bigint/src/limb.rs +++ b/vendor/crypto-bigint/src/limb.rs @@ -1,8 +1,6 @@ //! Big integers are represented as an array of smaller CPU word-size integers //! called "limbs". -#![allow(clippy::derive_hash_xor_eq)] - mod add; mod bit_and; mod bit_not; @@ -13,6 +11,7 @@ mod cmp; mod encoding; mod from; mod mul; +mod neg; mod shl; mod shr; mod sub; @@ -59,6 +58,8 @@ pub(crate) const HI_BIT: usize = Limb::BITS - 1; /// Big integers are represented as an array of smaller CPU word-size integers /// called "limbs". +// Our PartialEq impl only differs from the default one by being constant-time, so this is safe +#[allow(clippy::derived_hash_with_manual_eq)] #[derive(Copy, Clone, Default, Hash)] #[repr(transparent)] pub struct Limb(pub Word); |