Skip to content

Commit d7e3f34

Browse files
committed
should_implement_trait - filter on explicit lifetime param only
1 parent f7a73f1 commit d7e3f34

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
@@ -1502,7 +1502,7 @@ impl<'tcx> LateLintPass<'tcx> for Methods {
15021502
!impl_item.generics.params.iter()
15031503
.any(|p| matches!(
15041504
p.kind,
1505-
hir::GenericParamKind::Lifetime { .. }))
1505+
hir::GenericParamKind::Lifetime { kind: hir::LifetimeParamKind::Explicit }))
15061506
};
15071507
if name == method_name &&
15081508
sig.decl.inputs.len() == n_args &&

0 commit comments

Comments
 (0)