Implement Default for TaprootBuilder

Clippy emits:

  warning: you should consider adding a `Default` implementation for
  `TaprootBuilder`

As suggested, implement `Default` or `TaprootBuilder`.
This commit is contained in:
Tobin C. Harding 2022-05-25 13:42:34 +10:00
parent f81d4aa9bd
commit 841f1f5832
1 changed files with 6 additions and 0 deletions

View File

@ -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