Skip to content

Commit 38c79ef

Browse files
committed
Correcting mistake
1 parent 137ac1d commit 38c79ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rustc_entry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ impl<'a, K, V, A: Allocator + Clone> RustcOccupiedEntry<'a, K, V, A> {
432432
/// ```
433433
#[cfg_attr(feature = "inline-more", inline)]
434434
pub fn insert(&mut self, value: V) -> V {
435-
mem::remove(self.get_mut(), value)
435+
mem::replace(self.get_mut(), value)
436436
}
437437

438438
/// Takes the value out of the entry, and returns it.

0 commit comments

Comments
 (0)