From 3a5b9a707c786bf02ed05d65ca8394d77df601fb Mon Sep 17 00:00:00 2001 From: mcarton Date: Sat, 27 Feb 2016 18:05:50 +0100 Subject: [PATCH] Fix (new?) rustc warnings --- src/consts.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/consts.rs b/src/consts.rs index cf32a9a2c825..64f45d72c12e 100644 --- a/src/consts.rs +++ b/src/consts.rs @@ -206,7 +206,6 @@ fn lit_to_constant(lit: &LitKind) -> Constant { } fn constant_not(o: Constant) -> Option { - use syntax::ast::LitIntType::*; use self::Constant::*; match o { Bool(b) => Some(Bool(!b)), @@ -232,7 +231,6 @@ fn constant_not(o: Constant) -> Option { } fn constant_negate(o: Constant) -> Option { - use syntax::ast::LitIntType::*; use self::Constant::*; match o { Int(value, LitIntType::Signed(ity), sign) => Some(Int(value, LitIntType::Signed(ity), neg_sign(sign))),