Skip to content

Commit

Permalink
merkle: impl Default for MerkleBuoy
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Oct 6, 2023
1 parent 247db25 commit d0f97e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commit_verify/src/merkle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ 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)]
#[derive(Clone, PartialEq, Eq, Debug, Default)]
pub struct MerkleBuoy<D: Copy + Eq + SubAssign<u8> + Default = u5> {
buoy: D,
stack: Option<Box<MerkleBuoy<D>>>,
Expand Down

0 comments on commit d0f97e3

Please sign in to comment.