Merge commit '98e2b9f25b
' into clippyup
This commit is contained in:
parent
419bf6bbd8
commit
02bf692169
186 changed files with 4668 additions and 1570 deletions
|
@ -323,7 +323,7 @@ fn get_implementing_type<'a>(path: &QPath<'_>, candidates: &'a [&str], function:
|
|||
if let [int] = &*tp.segments;
|
||||
then {
|
||||
let name = &int.ident.name.as_str();
|
||||
candidates.iter().find(|c| name == *c).cloned()
|
||||
candidates.iter().find(|c| name == *c).copied()
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
@ -337,7 +337,7 @@ fn int_ty_to_sym<'tcx>(path: &QPath<'_>) -> Option<&'tcx str> {
|
|||
if let [ty] = &*path.segments;
|
||||
then {
|
||||
let name = &ty.ident.name.as_str();
|
||||
INTS.iter().find(|c| name == *c).cloned()
|
||||
INTS.iter().find(|c| name == *c).copied()
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue