From c0ae3e7d3550e068728cd6c204417e25127059ad Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Tue, 22 Nov 2022 15:27:19 +0000 Subject: [PATCH] fix formatting on master --- src/key.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 } } }