Skip to content

Commit

Permalink
Add Cstr
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessioC31 committed Jun 4, 2023
1 parent 4c79a9f commit 5d4cee7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clippy_lints/src/redundant_type_annotations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(..) => {
Expand Down

0 comments on commit 5d4cee7

Please sign in to comment.