From 841f1f5832ad0612fff370c5ead23c3cca8e35da Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 25 May 2022 13:42:34 +1000 Subject: [PATCH] Implement Default for TaprootBuilder Clippy emits: warning: you should consider adding a `Default` implementation for `TaprootBuilder` As suggested, implement `Default` or `TaprootBuilder`. --- src/util/taproot.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/util/taproot.rs b/src/util/taproot.rs index 1459788f..135cd374 100644 --- a/src/util/taproot.rs +++ b/src/util/taproot.rs @@ -514,6 +514,12 @@ impl TaprootBuilder { } } +impl Default for TaprootBuilder { + fn default() -> Self { + Self::new() + } +} + /// Represents the node information in taproot tree. /// /// Helper type used in merkle tree construction allowing one to build sparse merkle trees. The node