From 90b4f1cde8349a2a14bd4ff853c4be4559db3405 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 20 Apr 2022 15:31:58 +1000 Subject: [PATCH] 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. --- src/util/psbt/map/output.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/psbt/map/output.rs b/src/util/psbt/map/output.rs index 75024551..57d5a57a 100644 --- a/src/util/psbt/map/output.rs +++ b/src/util/psbt/map/output.rs @@ -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()) {