Clear TapTreeIter clippy warning

Clippy emits warning:

 public documentation for `script_leaves` links to private item `TapTreeIter`

I'm not exactly sure why this is but adding the generic type place
holder clears the warning.
This commit is contained in:
Tobin C. Harding 2022-04-20 15:31:58 +10:00
parent e6084a1af8
commit 90b4f1cde8
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ impl TapTree {
self.0.clone()
}
/// Returns [`TapTreeIter`] iterator for a taproot script tree, operating in DFS order over
/// Returns [`TapTreeIter<'_>`] iterator for a taproot script tree, operating in DFS order over
/// tree [`ScriptLeaf`]s.
pub fn script_leaves(&self) -> TapTreeIter {
match (self.0.branch().len(), self.0.branch().last()) {