Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
SKTT1Ryze committed Apr 13, 2024
1 parent a03d24b commit 8ad8b4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions leetcode-rs/src/btree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ impl TreeNodeHandle {
}

stack.push(node.as_ref().unwrap().clone());
node = node.unwrap().borrow().left.clone();
node.clone_from(&node.unwrap().borrow().left);
i += 1;
}
} else {
node = stack.pop().unwrap().borrow().right.clone();
node.clone_from(&stack.pop().unwrap().borrow().right);
}
}

Expand Down

0 comments on commit 8ad8b4d

Please sign in to comment.