From b1f766b37bb65bd6a1ae57300df7e47dfd81f7de Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Fri, 17 Feb 2017 13:23:19 +0100 Subject: [PATCH] fix dogfood tests --- clippy_lints/src/types.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clippy_lints/src/types.rs b/clippy_lints/src/types.rs index ce5afb7eac84..0d7459e18926 100644 --- a/clippy_lints/src/types.rs +++ b/clippy_lints/src/types.rs @@ -531,8 +531,8 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for CastPass { 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,