mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 16:39:26 +00:00
Fix (new?) rustc warnings
This commit is contained in:
parent
1c3cce8ba5
commit
3a5b9a707c
1 changed files with 0 additions and 2 deletions
|
@ -206,7 +206,6 @@ fn lit_to_constant(lit: &LitKind) -> Constant {
|
|||
}
|
||||
|
||||
fn constant_not(o: Constant) -> Option<Constant> {
|
||||
use syntax::ast::LitIntType::*;
|
||||
use self::Constant::*;
|
||||
match o {
|
||||
Bool(b) => Some(Bool(!b)),
|
||||
|
@ -232,7 +231,6 @@ fn constant_not(o: Constant) -> Option<Constant> {
|
|||
}
|
||||
|
||||
fn constant_negate(o: Constant) -> Option<Constant> {
|
||||
use syntax::ast::LitIntType::*;
|
||||
use self::Constant::*;
|
||||
match o {
|
||||
Int(value, LitIntType::Signed(ity), sign) => Some(Int(value, LitIntType::Signed(ity), neg_sign(sign))),
|
||||
|
|
Loading…
Reference in a new issue