Skip to content

Commit

Permalink
chore: fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Oct 17, 2023
1 parent c5a3da8 commit 059d8d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion commit_verify/src/commit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ pub(crate) mod test_helpers {
acc.iter().for_each(|cmt| {
// Testing that verification against other commitments
// returns `false`
assert!(!cmt.verify(msg).is_ok());
assert!(cmt.verify(msg).is_err());
});

// Detecting collision
Expand Down
4 changes: 2 additions & 2 deletions commit_verify/src/embed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ pub(crate) mod test_helpers {
acc.iter().for_each(|cmt| {
// Testing that verification against other commitments
// returns `false`
assert!(!cmt.clone().verify(msg, &proof).is_ok());
assert!(cmt.clone().verify(msg, &proof).is_err());
});

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

// Detecting collision: each message should produce a unique
Expand Down

0 comments on commit 059d8d9

Please sign in to comment.