Skip to content

Commit c7abdd3

Browse files
thestingergraydon
authored andcommitted
re-borrow in heir_swap (fixes compile)
1 parent f7d9485 commit c7abdd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/treemap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ fn remove<K: Ord, V>(node: &mut Option<~TreeNode<K, V>>, key: &K) -> bool {
523523
do child.mutate |child| {
524524
let mut child = child;
525525
if child.right.is_some() {
526-
heir_swap(node, &mut child.right);
526+
heir_swap(&mut *node, &mut child.right);
527527
} else {
528528
node.key <-> child.key;
529529
node.value <-> child.value;

0 commit comments

Comments
 (0)