diff --git a/commit_verify/src/merkle.rs b/commit_verify/src/merkle.rs index aa90ca2c..d15cf7ce 100644 --- a/commit_verify/src/merkle.rs +++ b/commit_verify/src/merkle.rs @@ -205,6 +205,7 @@ where T: CommitmentId + Copy } /// Helper struct to track depth when working with Merkle blocks. +// TODO: v0.11 Remove default generic from MerkleBuoy #[derive(Clone, PartialEq, Eq, Debug)] pub struct MerkleBuoy + Default = u5> { buoy: D, diff --git a/commit_verify/src/mpc/block.rs b/commit_verify/src/mpc/block.rs index d598bea4..887dee6c 100644 --- a/commit_verify/src/mpc/block.rs +++ b/commit_verify/src/mpc/block.rs @@ -430,7 +430,7 @@ impl MerkleBlock { } Ordering::Less => { cross_section.push(n2); - let mut buoy = MerkleBuoy::new(n2_depth); + let mut buoy = MerkleBuoy::::new(n2_depth); let mut stop = false; last_b = None; cross_section.extend(b.by_ref().take_while(|n| { @@ -448,7 +448,7 @@ impl MerkleBlock { } Ordering::Greater => { cross_section.push(n1); - let mut buoy = MerkleBuoy::new(n1_depth); + let mut buoy = MerkleBuoy::::new(n1_depth); let mut stop = false; last_a = None; cross_section.extend(a.by_ref().take_while(|n| {