about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNathaniel Hamovitz <18648574+nhamovitz@users.noreply.github.com>2021-10-18 18:20:35 -0700
committerNathaniel Hamovitz <18648574+nhamovitz@users.noreply.github.com>2021-10-18 18:20:35 -0700
commit02b1f266d6a98cd9dc430554b80971705c5de09b (patch)
treef532e8fc59385c4a0b7c5084a413c8e91f0984c7
parentbc32be0fecd9a99c981323699bbd5a8e485220f0 (diff)
downloadrust-02b1f266d6a98cd9dc430554b80971705c5de09b.tar.gz
rust-02b1f266d6a98cd9dc430554b80971705c5de09b.zip
Remove explicit lifetime
-rw-r--r--clippy_lints/src/trailing_zero_sized_array_without_repr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/trailing_zero_sized_array_without_repr.rs b/clippy_lints/src/trailing_zero_sized_array_without_repr.rs
index cc1671af82d..5fa13605ae3 100644
--- a/clippy_lints/src/trailing_zero_sized_array_without_repr.rs
+++ b/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
     }
 }
 
-fn has_repr_attr(cx: &LateContext<'tcx>, hir_id: HirId) -> bool {
+fn has_repr_attr(cx: &LateContext<'_>, hir_id: HirId) -> bool {
     cx.tcx.hir().attrs(hir_id).iter().any(|attr| attr.has_name(sym::repr))
 }