aboutsummaryrefslogtreecommitdiff
path: root/src/util/slab.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/slab.rs')
-rw-r--r--src/util/slab.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/slab.rs b/src/util/slab.rs
index efc72e1..2ddaa6c 100644
--- a/src/util/slab.rs
+++ b/src/util/slab.rs
@@ -296,7 +296,7 @@ impl<T> Slab<T> {
// Remove the slots vector from the page. This is done so that the
// freeing process is done outside of the lock's critical section.
- let vec = mem::replace(&mut slots.slots, vec![]);
+ let vec = mem::take(&mut slots.slots);
slots.head = 0;
// Drop the lock so we can drop the vector outside the lock below.