diff options
Diffstat (limited to 'vendor/crypto-bigint/src/uint/bit_not.rs')
-rw-r--r-- | vendor/crypto-bigint/src/uint/bit_not.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/vendor/crypto-bigint/src/uint/bit_not.rs b/vendor/crypto-bigint/src/uint/bit_not.rs index 747d3b49e..52fea5fd0 100644 --- a/vendor/crypto-bigint/src/uint/bit_not.rs +++ b/vendor/crypto-bigint/src/uint/bit_not.rs @@ -1,10 +1,10 @@ -//! [`UInt`] bitwise not operations. +//! [`Uint`] bitwise not operations. -use super::UInt; +use super::Uint; use crate::{Limb, Wrapping}; use core::ops::Not; -impl<const LIMBS: usize> UInt<LIMBS> { +impl<const LIMBS: usize> Uint<LIMBS> { /// Computes bitwise `!a`. #[inline(always)] pub const fn not(&self) -> Self { @@ -20,15 +20,16 @@ impl<const LIMBS: usize> UInt<LIMBS> { } } -impl<const LIMBS: usize> Not for UInt<LIMBS> { +impl<const LIMBS: usize> Not for Uint<LIMBS> { type Output = Self; + #[allow(clippy::needless_borrow)] fn not(self) -> <Self as Not>::Output { (&self).not() } } -impl<const LIMBS: usize> Not for Wrapping<UInt<LIMBS>> { +impl<const LIMBS: usize> Not for Wrapping<Uint<LIMBS>> { type Output = Self; fn not(self) -> <Self as Not>::Output { |