Fix a couple of clippy "needless_borrow" issues (#200)

This commit is contained in:
Josh Triplett 2022-04-27 12:04:14 -07:00 committed by GitHub
parent 5e794aa789
commit 288e213c78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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