Skip to content

Commit 4864a33

Browse files
committed
Merge #528: fix formatting on master
c0ae3e7 fix formatting on master (Andrew Poelstra) Pull request description: Looks like I need to check formatting now before merging things :) master CI is broken because of cargo fmt. ACKs for top commit: tcharding: ACK c0ae3e7 Tree-SHA512: 9dc22eb5edfb565309cfd14cb9634abba196e46591da8c21d241bd686df8436a8af371c6520ea6ae688fcf81a835919a1bc9a3730f206ba6ef758087efa282e1
2 parents 17c8751 + c0ae3e7 commit 4864a33

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/key.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ impl PartialEq for SecretKey {
7171
/// This implementation is designed to be constant time to help prevent side channel attacks.
7272
#[inline]
7373
fn eq(&self, other: &Self) -> bool {
74-
let accum = self.0.iter().zip(&other.0)
75-
.fold(0, |accum, (a, b)| accum | a ^ b);
74+
let accum = self.0.iter().zip(&other.0).fold(0, |accum, (a, b)| accum | a ^ b);
7675
unsafe { core::ptr::read_volatile(&accum) == 0 }
7776
}
7877
}

0 commit comments

Comments
 (0)