clippy: Fix dereferencing a tuple pattern warnings (#31811)

This commit is contained in:
Oluwatobi Sofela 2024-03-21 18:04:18 +01:00 committed by GitHub
parent b22281d94f
commit 694e86ecff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 29 additions and 37 deletions

View file

@ -253,7 +253,7 @@ pub unsafe fn find_enum_value<'a, T>(
pairs
.iter()
.find(|&&(key, _)| search == *key)
.map(|&(_, ref ev)| ev),
.map(|(_, ev)| ev),
search,
))
}