Skip to content

Commit

Permalink
merkle: remove default generic from MerkleBuoy. Closes #141
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Oct 28, 2023
1 parent 387ed70 commit c747574
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions commit_verify/src/merkle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,8 @@ where T: CommitmentId<Id = MerkleNode> + Copy
}

/// Helper struct to track depth when working with Merkle blocks.
// TODO: v0.11 Remove default generic from MerkleBuoy
#[derive(Clone, PartialEq, Eq, Debug, Default)]
pub struct MerkleBuoy<D: Copy + Eq + SubAssign<u8> + Default = u5> {
pub struct MerkleBuoy<D: Copy + Eq + SubAssign<u8> + Default> {
buoy: D,
stack: Option<Box<MerkleBuoy<D>>>,
}
Expand Down

0 comments on commit c747574

Please sign in to comment.