From d0f97e3e99fb9164949d841e09b8394bd0374f17 Mon Sep 17 00:00:00 2001 From: Dr Maxim Orlovsky Date: Fri, 6 Oct 2023 12:55:29 +0200 Subject: [PATCH] merkle: impl Default for MerkleBuoy --- commit_verify/src/merkle.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commit_verify/src/merkle.rs b/commit_verify/src/merkle.rs index d15cf7ce..c187e9e1 100644 --- a/commit_verify/src/merkle.rs +++ b/commit_verify/src/merkle.rs @@ -206,7 +206,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)] +#[derive(Clone, PartialEq, Eq, Debug, Default)] pub struct MerkleBuoy + Default = u5> { buoy: D, stack: Option>>,