This commit is contained in:
Joel Wejdenstål 2023-08-22 02:00:33 +02:00
parent 3448b6f070
commit 8364d3e48e
No known key found for this signature in database
GPG Key ID: DF03CEFBB1A915AA
1 changed files with 1 additions and 1 deletions

View File

@ -960,7 +960,7 @@ impl<'a, K: 'a + Eq + Hash, V: 'a, S: 'a + BuildHasher + Clone> Map<'a, K, V, S>
if let RawEntryMut::Occupied(entry) =
shard.raw_entry_mut().from_key_hashed_nocheck(hash, key)
{
if f(&entry.key(), &entry.get().get()) {
if f(entry.key(), entry.get().get()) {
let (k, v) = entry.remove_entry();
Some((k, v.into_inner()))
} else {