summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2018-03-12 15:51:01 -0400
committerAaron Hill <aa1ronham@gmail.com>2018-03-12 15:51:01 -0400
commit95402410d818a00ebfbeca636040a2c510f08891 (patch)
tree095526ffcdaf63a96bef589c0855433491c712a0 /src
parentca92c4c72e4639a3f91c8467c19ca1863d2743a2 (diff)
downloadroughenough-95402410d818a00ebfbeca636040a2c510f08891.zip
Fix merkle tests
Diffstat (limited to 'src')
-rw-r--r--src/merkle.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/merkle.rs b/src/merkle.rs
index a93d314..4bb4abd 100644
--- a/src/merkle.rs
+++ b/src/merkle.rs
@@ -151,7 +151,7 @@ mod test {
for i in 0..num {
println!("Testing {:?} {:?}", num, i);
- let paths: Vec<u8> = merkle.get_paths(i).into_iter().flat_map(|x| x).collect();
+ let paths: Vec<u8> = merkle.get_paths(i);
let computed_root = root_from_paths(i, &[i as u8], &paths);
assert_eq!(root, computed_root);