Skip to content

Commit 0630491

Browse files
committed
Make TapTree::height public
There is no reason to keep this function private, the `height` field can be gotten at by pattern matching so this function is just a convenience, might as well let users have at it.
1 parent cdb57cb commit 0630491

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/descriptor/tr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl<Pk: MiniscriptKey> TapTree<Pk> {
124124
}
125125

126126
/// Returns the height of this tree.
127-
fn height(&self) -> usize {
127+
pub fn height(&self) -> usize {
128128
match *self {
129129
TapTree::Tree { left: _, right: _, height } => height,
130130
TapTree::Leaf(..) => 0,

0 commit comments

Comments
 (0)