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(..) => {