We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 140ba61 commit a745cc5Copy full SHA for a745cc5
clippy_lints/src/unicode.rs
@@ -75,7 +75,7 @@ declare_lint_pass!(Unicode => [INVISIBLE_CHARACTERS, NON_ASCII_LITERAL, UNICODE_
75
impl LateLintPass<'_> for Unicode {
76
fn check_expr(&mut self, cx: &LateContext<'_>, expr: &'_ Expr<'_>) {
77
if let ExprKind::Lit(ref lit) = expr.kind {
78
- if let LitKind::Str(_, _) = lit.node {
+ if let LitKind::Str(_, _) | LitKind::Char(_)= lit.node {
79
check_str(cx, lit.span, expr.hir_id);
80
}
81
0 commit comments