]> git.lizzy.rs Git - rust.git/commitdiff
fix dogfood tests
authorOliver Schneider <oli-obk@users.noreply.github.com>
Fri, 17 Feb 2017 12:23:19 +0000 (13:23 +0100)
committerGitHub <noreply@github.com>
Fri, 17 Feb 2017 12:23:19 +0000 (13:23 +0100)
clippy_lints/src/types.rs

index ce5afb7eac8440e00c032d68e3a8a01d1bcb4793..0d7459e1892633b7cf395bcbe5b0e599ec22e3a3 100644 (file)
@@ -531,8 +531,8 @@ fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx Expr) {
             if let ExprLit(ref lit) = ex.node {
                 use syntax::ast::{LitKind, LitIntType};
                 match lit.node {
-                    LitKind::Int(_, LitIntType::Unsuffixed) => (),
-                    LitKind::FloatUnsuffixed(_) => (),
+                    LitKind::Int(_, LitIntType::Unsuffixed) |
+                    LitKind::FloatUnsuffixed(_) => {},
                     _ => {
                         if cast_from.sty == cast_to.sty && !in_external_macro(cx, expr.span) {
                             span_lint(cx,