diff --git a/src/mapref/entry.rs b/src/mapref/entry.rs index 3fc007ca..e9e6b913 100644 --- a/src/mapref/entry.rs +++ b/src/mapref/entry.rs @@ -159,9 +159,7 @@ impl<'a, K: Eq + Hash, V, S: BuildHasher> VacantEntry<'a, K, V, S> { let kptr: *const K = k; let vptr: *mut V = v.as_ptr(); - let r = OccupiedEntry::new(self.shard, self.key, (kptr, vptr)); - - r + OccupiedEntry::new(self.shard, self.key, (kptr, vptr)) } }