We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc32be0 commit 02b1f26Copy full SHA for 02b1f26
clippy_lints/src/trailing_zero_sized_array_without_repr.rs
@@ -72,6 +72,6 @@ fn is_struct_with_trailing_zero_sized_array(cx: &LateContext<'tcx>, item: &'tcx
72
}
73
74
75
-fn has_repr_attr(cx: &LateContext<'tcx>, hir_id: HirId) -> bool {
+fn has_repr_attr(cx: &LateContext<'_>, hir_id: HirId) -> bool {
76
cx.tcx.hir().attrs(hir_id).iter().any(|attr| attr.has_name(sym::repr))
77
0 commit comments