clippy::complexity fixes
This commit is contained in:
parent
0157cc977f
commit
e6f77a1787
18 changed files with 23 additions and 30 deletions
|
@ -1345,8 +1345,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
|
|||
generics
|
||||
.params
|
||||
.iter()
|
||||
.find(|p| def_id == self.resolver.local_def_id(p.id).to_def_id())
|
||||
.is_some()
|
||||
.any(|p| def_id == self.resolver.local_def_id(p.id).to_def_id())
|
||||
}
|
||||
// Either the `bounded_ty` is not a plain type parameter, or
|
||||
// it's not found in the generic type parameters list.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue