Skip to content

Commit 7cc1a2e

Browse files
committed
should_implement_trait - filter on explicit lifetime param only
1 parent e6b2254 commit 7cc1a2e

File tree

1 file changed

+1
-1
lines changed
  • clippy_lints/src/methods

1 file changed

+1
-1
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,7 @@ impl<'tcx> LateLintPass<'tcx> for Methods {
15011501
!impl_item.generics.params.iter()
15021502
.any(|p| matches!(
15031503
p.kind,
1504-
hir::GenericParamKind::Lifetime { .. }))
1504+
hir::GenericParamKind::Lifetime { kind: hir::LifetimeParamKind::Explicit }))
15051505
};
15061506
if name == method_name &&
15071507
sig.decl.inputs.len() == n_args &&

0 commit comments

Comments
 (0)