diff --git a/ff/src/biginteger/arithmetic.rs b/ff/src/biginteger/arithmetic.rs index 227c75593..d7b150dde 100644 --- a/ff/src/biginteger/arithmetic.rs +++ b/ff/src/biginteger/arithmetic.rs @@ -11,7 +11,6 @@ macro_rules! adc { /// Sets a = a + b + carry, and returns the new carry. #[inline(always)] -#[allow(unused_mut)] #[doc(hidden)] pub fn adc(a: &mut u64, b: u64, carry: u64) -> u64 { let tmp = *a as u128 + b as u128 + carry as u128; @@ -21,7 +20,6 @@ pub fn adc(a: &mut u64, b: u64, carry: u64) -> u64 { /// Sets a = a + b + carry, and returns the new carry. #[inline(always)] -#[allow(unused_mut)] #[doc(hidden)] pub fn adc_for_add_with_carry(a: &mut u64, b: u64, carry: u8) -> u8 { #[cfg(all(target_arch = "x86_64", feature = "asm"))] @@ -57,7 +55,6 @@ macro_rules! sbb { /// Sets a = a - b - borrow, and returns the borrow. #[inline(always)] -#[allow(unused_mut)] pub(crate) fn sbb(a: &mut u64, b: u64, borrow: u64) -> u64 { let tmp = (1u128 << 64) + (*a as u128) - (b as u128) - (borrow as u128); *a = tmp as u64; @@ -66,7 +63,6 @@ pub(crate) fn sbb(a: &mut u64, b: u64, borrow: u64) -> u64 { /// Sets a = a - b - borrow, and returns the borrow. #[inline(always)] -#[allow(unused_mut)] #[doc(hidden)] pub fn sbb_for_sub_with_borrow(a: &mut u64, b: u64, borrow: u8) -> u8 { #[cfg(all(target_arch = "x86_64", feature = "asm"))]