Skip to content

Commit

Permalink
Use debug_assert_eq! instead of assert!
Browse files Browse the repository at this point in the history
  • Loading branch information
CPerezz committed Dec 4, 2020
1 parent 21a6459 commit c34580b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/crossover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl Crossover {
.copy_from_slice(&self.encrypted_data.to_bytes()[..]);
n += PoseidonCipher::cipher_size_bytes();

assert_eq!(n, Crossover::serialized_size());
debug_assert_eq!(n, Crossover::serialized_size());

buf
}
Expand Down
2 changes: 1 addition & 1 deletion src/fee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl Fee {
buf[n..n + 64].copy_from_slice(&self.stealth_address.to_bytes()[..]);
n += 64;

assert_eq!(n, Fee::serialized_size());
debug_assert_eq!(n, Fee::serialized_size());

buf
}
Expand Down
2 changes: 1 addition & 1 deletion src/note.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ impl Note {
.copy_from_slice(&self.encrypted_data.to_bytes()[..]);
n += PoseidonCipher::cipher_size_bytes();

assert_eq!(n, Note::serialized_size());
debug_assert_eq!(n, Note::serialized_size());

buf
}
Expand Down

0 comments on commit c34580b

Please sign in to comment.