From 5d4cee7cd6c29c4ec4e3402d3b181cf8899aee02 Mon Sep 17 00:00:00 2001 From: Alessio Cosenza Date: Mon, 29 May 2023 18:55:58 +0200 Subject: [PATCH] Add `Cstr` --- clippy_lints/src/redundant_type_annotations.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clippy_lints/src/redundant_type_annotations.rs b/clippy_lints/src/redundant_type_annotations.rs index b9a0dc3d57a3..8e9234bba3c8 100644 --- a/clippy_lints/src/redundant_type_annotations.rs +++ b/clippy_lints/src/redundant_type_annotations.rs @@ -190,7 +190,8 @@ impl LateLintPass<'_> for RedundantTypeAnnotations { | LitKind::ByteStr(..) | LitKind::Byte(..) | LitKind::Char(..) - | LitKind::Bool(..) => { + | LitKind::Bool(..) + | LitKind::CStr(..) => { span_lint(cx, REDUNDANT_TYPE_ANNOTATIONS, local.span, "redundant type annotation"); }, LitKind::Int(..) | LitKind::Float(..) => {