diff --git a/clippy_lints/src/unicode.rs b/clippy_lints/src/unicode.rs index a514e8c44..b5e4bc75b 100644 --- a/clippy_lints/src/unicode.rs +++ b/clippy_lints/src/unicode.rs @@ -75,7 +75,7 @@ declare_lint_pass!(Unicode => [INVISIBLE_CHARACTERS, NON_ASCII_LITERAL, UNICODE_ impl LateLintPass<'_> for Unicode { fn check_expr(&mut self, cx: &LateContext<'_>, expr: &'_ Expr<'_>) { if let ExprKind::Lit(ref lit) = expr.kind { - if let LitKind::Str(_, _) = lit.node { + if let LitKind::Str(_, _) | LitKind::Char(_)= lit.node { check_str(cx, lit.span, expr.hir_id); } }