Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Al-Kindi-0 committed Oct 21, 2024
1 parent 3b6ccd9 commit 0fd8c31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crypto/src/hash/blake/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ fn hash_elements_padding() {

#[test]
fn merge_vs_merge_many_256() {
let digest_0 = ByteDigest::read_from_bytes(&[1_u8; 32]).unwrap().into();
let digest_1 = ByteDigest::read_from_bytes(&[2_u8; 32]).unwrap().into();
let digest_0 = ByteDigest::read_from_bytes(&[1_u8; 32]).unwrap();
let digest_1 = ByteDigest::read_from_bytes(&[2_u8; 32]).unwrap();

let r1 = Blake3_256::<BaseElement>::merge(&[digest_0, digest_1]);
let r2 = Blake3_256::<BaseElement>::merge_many(&[digest_0, digest_1]);
Expand All @@ -45,8 +45,8 @@ fn merge_vs_merge_many_256() {

#[test]
fn merge_vs_merge_many_192() {
let digest_0 = ByteDigest::read_from_bytes(&[1_u8; 24]).unwrap().into();
let digest_1 = ByteDigest::read_from_bytes(&[2_u8; 24]).unwrap().into();
let digest_0 = ByteDigest::read_from_bytes(&[1_u8; 24]).unwrap();
let digest_1 = ByteDigest::read_from_bytes(&[2_u8; 24]).unwrap();

let r1 = Blake3_192::<BaseElement>::merge(&[digest_0, digest_1]);
let r2 = Blake3_192::<BaseElement>::merge_many(&[digest_0, digest_1]);
Expand Down

0 comments on commit 0fd8c31

Please sign in to comment.