Make TapTree::node_info public

This commit is contained in:
Dr Maxim Orlovsky 2022-03-30 11:33:40 +02:00
parent a898797b07
commit f9d8d0d968
No known key found for this signature in database
GPG Key ID: FFC0250947E5C6F7
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ impl Eq for TapTree {}
impl TapTree { impl TapTree {
/// Gets the inner node info as the builder is finalized. /// Gets the inner node info as the builder is finalized.
fn node_info(&self) -> &NodeInfo { pub fn node_info(&self) -> &NodeInfo {
// The builder algorithm invariant guarantees that is_complete builder // The builder algorithm invariant guarantees that is_complete builder
// have only 1 element in branch and that is not None. // have only 1 element in branch and that is not None.
// We make sure that we only allow is_complete builders via the from_inner // We make sure that we only allow is_complete builders via the from_inner