Skip to content

Commit 5d4cee7

Browse files
committed
Add Cstr
1 parent 4c79a9f commit 5d4cee7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clippy_lints/src/redundant_type_annotations.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ impl LateLintPass<'_> for RedundantTypeAnnotations {
190190
| LitKind::ByteStr(..)
191191
| LitKind::Byte(..)
192192
| LitKind::Char(..)
193-
| LitKind::Bool(..) => {
193+
| LitKind::Bool(..)
194+
| LitKind::CStr(..) => {
194195
span_lint(cx, REDUNDANT_TYPE_ANNOTATIONS, local.span, "redundant type annotation");
195196
},
196197
LitKind::Int(..) | LitKind::Float(..) => {

0 commit comments

Comments
 (0)