Skip to content

Commit 2c2ad95

Browse files
committed
Implement Default for TaprootBuilder
Clippy emits: warning: you should consider adding a `Default` implementation for `TaprootBuilder` As suggested, implement `Default` or `TaprootBuilder`.
1 parent f16ab4d commit 2c2ad95

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/util/taproot.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,12 @@ impl TaprootBuilder {
514514
}
515515
}
516516

517+
impl Default for TaprootBuilder {
518+
fn default() -> Self {
519+
Self::new()
520+
}
521+
}
522+
517523
/// Represents the node information in taproot tree.
518524
///
519525
/// Helper type used in merkle tree construction allowing one to build sparse merkle trees. The node

0 commit comments

Comments
 (0)