mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-20 07:58:44 +00:00
should_implement_trait - filter on explicit lifetime param only
This commit is contained in:
parent
e6b2254f9e
commit
7cc1a2ed87
1 changed files with 1 additions and 1 deletions
|
@ -1501,7 +1501,7 @@ impl<'tcx> LateLintPass<'tcx> for Methods {
|
|||
!impl_item.generics.params.iter()
|
||||
.any(|p| matches!(
|
||||
p.kind,
|
||||
hir::GenericParamKind::Lifetime { .. }))
|
||||
hir::GenericParamKind::Lifetime { kind: hir::LifetimeParamKind::Explicit }))
|
||||
};
|
||||
if name == method_name &&
|
||||
sig.decl.inputs.len() == n_args &&
|
||||
|
|
Loading…
Add table
Reference in a new issue