Skip to content

Commit ca2a5f7

Browse files
committed
Add parenthesis around left hand side of companion
Parenthesis are not needed around this expression but my editor is going mad and cannot format the code without them. Since it does not hurt readability add parenthesis around the expression.
1 parent 737e8b4 commit ca2a5f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/taproot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ impl TaprootBuilder {
510510
// We cannot insert a leaf at a lower depth while a deeper branch is unfinished. Doing
511511
// so would mean the add_leaf/add_hidden invocations do not correspond to a DFS traversal of a
512512
// binary tree.
513-
if depth as usize + 1 < self.branch.len() {
513+
if (depth as usize + 1) < self.branch.len() {
514514
return Err(TaprootBuilderError::NodeNotInDfsOrder);
515515
}
516516

0 commit comments

Comments
 (0)