From 4a2f11cc4903448cca8eb0ffcc9d45f7ff16c62e Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Sun, 5 Mar 2023 17:19:03 +0000 Subject: [PATCH] fix clippy lint --- bitcoin/src/taproot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/src/taproot.rs b/bitcoin/src/taproot.rs index fb6ac15c..1f3a1127 100644 --- a/bitcoin/src/taproot.rs +++ b/bitcoin/src/taproot.rs @@ -568,7 +568,7 @@ impl TaprootBuilder { if self.branch.len() < depth as usize + 1 { // add enough nodes so that we can insert node at depth `depth` let num_extra_nodes = depth as usize + 1 - self.branch.len(); - self.branch.extend((0..num_extra_nodes).into_iter().map(|_| None)); + self.branch.extend((0..num_extra_nodes).map(|_| None)); } // Push the last node to the branch self.branch[depth as usize] = Some(node);