Merge pull request #383 from xfix/patch-1

Warn about enum_variant_names violations in enum N
This commit is contained in:
David Tolnay
2017-11-22 08:46:28 -08:00
committed by GitHub

View File

@@ -19,9 +19,6 @@ pub struct Number {
n: N,
}
// "N" is a prefix of "NegInt"... this is a false positive.
// https://github.com/Manishearth/rust-clippy/issues/1241
#[cfg_attr(feature = "cargo-clippy", allow(enum_variant_names))]
#[derive(Copy, Clone, Debug, PartialEq)]
enum N {
PosInt(u64),