Skip to content

Commit ca2ba97

Browse files
committed
Remove unnecssary lifetime from trait_ref_of_method
1 parent 837b520 commit ca2ba97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: clippy_lints/src/utils/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ pub fn implements_trait<'a, 'tcx>(
315315
/// }
316316
/// }
317317
/// ```
318-
pub fn trait_ref_of_method<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, hir_id: HirId) -> Option<&'a TraitRef> {
318+
pub fn trait_ref_of_method<'tcx>(cx: &LateContext<'_, 'tcx>, hir_id: HirId) -> Option<&'tcx TraitRef> {
319319
// Get the implemented trait for the current function
320320
let parent_impl = cx.tcx.hir().get_parent_item(hir_id);
321321
if_chain! {

0 commit comments

Comments
 (0)