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:
parent
f81d4aa9bd
commit
841f1f5832
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue