ExprKind
This commit is contained in:
@@ -71,7 +71,7 @@ impl LintPass for Unicode {
|
||||
|
||||
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Unicode {
|
||||
fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx Expr) {
|
||||
if let ExprLit(ref lit) = expr.node {
|
||||
if let ExprKind::Lit(ref lit) = expr.node {
|
||||
if let LitKind::Str(_, _) = lit.node {
|
||||
check_str(cx, lit.span, expr.id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user