fix clippy lint

This commit is contained in:
Andrew Poelstra 2023-03-05 17:19:03 +00:00
parent 10eb0da1ef
commit 4a2f11cc49
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 1 additions and 1 deletions

View File

@ -568,7 +568,7 @@ impl TaprootBuilder {
if self.branch.len() < depth as usize + 1 { if self.branch.len() < depth as usize + 1 {
// add enough nodes so that we can insert node at depth `depth` // add enough nodes so that we can insert node at depth `depth`
let num_extra_nodes = depth as usize + 1 - self.branch.len(); 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 // Push the last node to the branch
self.branch[depth as usize] = Some(node); self.branch[depth as usize] = Some(node);