Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 02b1f26

Browse files
committed
Remove explicit lifetime
1 parent bc32be0 commit 02b1f26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/trailing_zero_sized_array_without_repr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,6 @@ fn is_struct_with_trailing_zero_sized_array(cx: &LateContext<'tcx>, item: &'tcx
7272
}
7373
}
7474

75-
fn has_repr_attr(cx: &LateContext<'tcx>, hir_id: HirId) -> bool {
75+
fn has_repr_attr(cx: &LateContext<'_>, hir_id: HirId) -> bool {
7676
cx.tcx.hir().attrs(hir_id).iter().any(|attr| attr.has_name(sym::repr))
7777
}

0 commit comments

Comments
 (0)