Repository: LNP-BP/client_side_validation (language: rust)

Issue:
Remove default generic from MerkleBuoy
https://github.com/LNP-BP/client_side_validation/blob/d0f97e3e99fb9164949d841e09b8394bd0374f17/commit_verify/src/merkle.rs#L208-L210


Discussion / hints:

Fix patch:
diff --git a/commit_verify/src/merkle.rs b/commit_verify/src/merkle.rs
index c187e9e1..69a3eb62 100644
--- a/commit_verify/src/merkle.rs
+++ b/commit_verify/src/merkle.rs
@@ -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>>>,
 }


Test patch: