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.
This commit is contained in:
Tobin C. Harding 2022-05-04 15:48:23 +10:00
parent 7cf8af2f86
commit 0a9191b429
1 changed files with 1 additions and 1 deletions

View File

@ -510,7 +510,7 @@ impl TaprootBuilder {
// We cannot insert a leaf at a lower depth while a deeper branch is unfinished. Doing // We cannot insert a leaf at a lower depth while a deeper branch is unfinished. Doing
// so would mean the add_leaf/add_hidden invocations do not correspond to a DFS traversal of a // so would mean the add_leaf/add_hidden invocations do not correspond to a DFS traversal of a
// binary tree. // binary tree.
if depth as usize + 1 < self.branch.len() { if (depth as usize + 1) < self.branch.len() {
return Err(TaprootBuilderError::NodeNotInDfsOrder); return Err(TaprootBuilderError::NodeNotInDfsOrder);
} }