Skip to content

Commit

Permalink
Remove extraneous reservation
Browse files Browse the repository at this point in the history
  • Loading branch information
Sujay Jayakar committed Mar 17, 2019
1 parent e1d1a17 commit b3717fd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1648,7 +1648,6 @@ impl<'a, K, V, S> RawVacantEntryMut<'a, K, V, S> {
S: BuildHasher,
H: Fn(&K) -> u64,
{
self.table.reserve(1, |x| hasher(&x.0));
unsafe {
let elem = self.table.insert(hash, (key, value), |x| hasher(&x.0));
let &mut (ref mut key, ref mut value) = elem.as_mut();
Expand Down

0 comments on commit b3717fd

Please sign in to comment.