Skip to content

Commit b0f58f6

Browse files
committed
avoid explicit reborrow in heir_swap
1 parent 195a969 commit b0f58f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/treemap.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ fn remove<K: Ord, V>(node: &mut Option<~TreeNode<K, V>>, key: &K) -> bool {
631631
// *could* be done without recursion, but it won't borrow check
632632
do child.mutate |mut child| {
633633
if child.right.is_some() {
634-
heir_swap(&mut *node, &mut child.right);
634+
heir_swap(node, &mut child.right);
635635
} else {
636636
node.key <-> child.key;
637637
node.value <-> child.value;

0 commit comments

Comments
 (0)