mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 04:39:24 +00:00
fmt/clippy
This commit is contained in:
@@ -226,8 +226,7 @@ where
|
||||
break;
|
||||
}
|
||||
|
||||
let mut bit = *raw_bit as u8;
|
||||
debug_assert_eq!(bit | 1, 1);
|
||||
let mut bit = u8::from(*raw_bit);
|
||||
*raw_bit = false;
|
||||
|
||||
// Accumulate this bit
|
||||
@@ -246,7 +245,7 @@ where
|
||||
these_bits,
|
||||
&mut blinding_key,
|
||||
));
|
||||
these_bits = 0;
|
||||
these_bits.zeroize();
|
||||
}
|
||||
}
|
||||
debug_assert_eq!(bits.len(), capacity / bits_per_group);
|
||||
|
||||
@@ -34,9 +34,8 @@ pub fn scalar_normalize<F0: PrimeFieldBits + Zeroize, F1: PrimeFieldBits>(
|
||||
res1 = res1.double();
|
||||
res2 = res2.double();
|
||||
|
||||
let mut bit = *raw_bit as u8;
|
||||
debug_assert_eq!(bit | 1, 1);
|
||||
*raw_bit = false;
|
||||
let mut bit = u8::from(*raw_bit);
|
||||
*raw_bit = 0;
|
||||
|
||||
res1 += F0::from(bit.into());
|
||||
res2 += F1::from(bit.into());
|
||||
|
||||
Reference in New Issue
Block a user