aboutsummaryrefslogtreecommitdiff
path: root/src/test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test.rs')
-rw-r--r--src/test.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test.rs b/src/test.rs
index b16e043..cbe0188 100644
--- a/src/test.rs
+++ b/src/test.rs
@@ -119,7 +119,7 @@ pub fn test_hash_many_fn(
let counter = (1u64 << 32) - 1;
// First hash chunks.
- let mut chunks = ArrayVec::<[&[u8; CHUNK_LEN]; NUM_INPUTS]>::new();
+ let mut chunks = ArrayVec::<&[u8; CHUNK_LEN], NUM_INPUTS>::new();
for i in 0..NUM_INPUTS {
chunks.push(array_ref!(input_buf, i * CHUNK_LEN, CHUNK_LEN));
}
@@ -158,7 +158,7 @@ pub fn test_hash_many_fn(
}
// Then hash parents.
- let mut parents = ArrayVec::<[&[u8; 2 * OUT_LEN]; NUM_INPUTS]>::new();
+ let mut parents = ArrayVec::<&[u8; 2 * OUT_LEN], NUM_INPUTS>::new();
for i in 0..NUM_INPUTS {
parents.push(array_ref!(input_buf, i * 2 * OUT_LEN, 2 * OUT_LEN));
}