Skip to content

Commit 059d8d9

Browse files
committed
chore: fix clippy lints
1 parent c5a3da8 commit 059d8d9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

commit_verify/src/commit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ pub(crate) mod test_helpers {
139139
acc.iter().for_each(|cmt| {
140140
// Testing that verification against other commitments
141141
// returns `false`
142-
assert!(!cmt.verify(msg).is_ok());
142+
assert!(cmt.verify(msg).is_err());
143143
});
144144

145145
// Detecting collision

commit_verify/src/embed.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ pub(crate) mod test_helpers {
240240
acc.iter().for_each(|cmt| {
241241
// Testing that verification against other commitments
242242
// returns `false`
243-
assert!(!cmt.clone().verify(msg, &proof).is_ok());
243+
assert!(cmt.clone().verify(msg, &proof).is_err());
244244
});
245245

246246
// Detecting collision: each message should produce a unique
@@ -286,7 +286,7 @@ pub(crate) mod test_helpers {
286286
acc.iter().for_each(|commitment| {
287287
// Testing that verification against other commitments
288288
// returns `false`
289-
assert!(!SUPPLEMENT.verify(msg, commitment).is_ok());
289+
assert!(SUPPLEMENT.verify(msg, commitment).is_err());
290290
});
291291

292292
// Detecting collision: each message should produce a unique

0 commit comments

Comments
 (0)