clippy: identity_op

This commit is contained in:
Corentin Henry 2017-06-08 11:55:59 -07:00
parent 8578f56568
commit 1deff7a44a
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ use std::ops::BitOr;
bitflags! { bitflags! {
struct Flags: u64 { struct Flags: u64 {
const SC_NEGATE_REQS = 1 << 0; const SC_NEGATE_REQS = 1;
const SC_REQUIRED = 1 << 1; const SC_REQUIRED = 1 << 1;
const A_REQUIRED_ELSE_HELP = 1 << 2; const A_REQUIRED_ELSE_HELP = 1 << 2;
const GLOBAL_VERSION = 1 << 3; const GLOBAL_VERSION = 1 << 3;

View file

@ -4,7 +4,7 @@ use std::str::FromStr;
bitflags! { bitflags! {
struct Flags: u16 { struct Flags: u16 {
const REQUIRED = 1 << 0; const REQUIRED = 1;
const MULTIPLE = 1 << 1; const MULTIPLE = 1 << 1;
const EMPTY_VALS = 1 << 2; const EMPTY_VALS = 1 << 2;
const GLOBAL = 1 << 3; const GLOBAL = 1 << 3;