Fixed extra cases found in better checking.

This commit is contained in:
Isaac van Bakel
2017-08-01 18:32:32 +01:00
parent 8e4c9e4e9d
commit c623375326
3 changed files with 4 additions and 4 deletions

View File

@@ -563,7 +563,7 @@ impl<'t, K, V> FullBucket<K, V, &'t mut RawTable<K, V>> {
///
/// This works similarly to `put`, building an `EmptyBucket` out of the
/// taken bucket.
pub fn take(mut self) -> (EmptyBucket<K, V, &'t mut RawTable<K, V>>, K, V) {
pub fn take(self) -> (EmptyBucket<K, V, &'t mut RawTable<K, V>>, K, V) {
self.table.size -= 1;
unsafe {