diff --git a/src/key.rs b/src/key.rs index e5ca506..b04b909 100644 --- a/src/key.rs +++ b/src/key.rs @@ -71,8 +71,7 @@ impl PartialEq for SecretKey { /// This implementation is designed to be constant time to help prevent side channel attacks. #[inline] fn eq(&self, other: &Self) -> bool { - let accum = self.0.iter().zip(&other.0) - .fold(0, |accum, (a, b)| accum | a ^ b); + let accum = self.0.iter().zip(&other.0).fold(0, |accum, (a, b)| accum | a ^ b); unsafe { core::ptr::read_volatile(&accum) == 0 } } }