mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
clippy: Fix dereferencing a tuple pattern warnings (#31811)
This commit is contained in:
parent
b22281d94f
commit
694e86ecff
14 changed files with 29 additions and 37 deletions
|
@ -39,7 +39,7 @@ impl<T: Float> Deref for Finite<T> {
|
|||
type Target = T;
|
||||
|
||||
fn deref(&self) -> &T {
|
||||
let &Finite(ref value) = self;
|
||||
let Finite(value) = self;
|
||||
value
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue