diff --git a/crossbeam-skiplist/src/base.rs b/crossbeam-skiplist/src/base.rs index efa0a1c7f..f8987303c 100644 --- a/crossbeam-skiplist/src/base.rs +++ b/crossbeam-skiplist/src/base.rs @@ -1946,7 +1946,7 @@ where None => self.range.end_bound(), }; if below_upper_bound(&bound, h.key().borrow()) { - self.head = next_head.clone(); + self.head.clone_from(&next_head); next_head } else { unsafe { @@ -1973,7 +1973,7 @@ where None => self.range.start_bound(), }; if above_lower_bound(&bound, t.key().borrow()) { - self.tail = next_tail.clone(); + self.tail.clone_from(&next_tail); next_tail } else { unsafe {