From 17ef410097e24a2266fe7972842d129426695654 Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Wed, 22 Nov 2017 17:34:09 +0100 Subject: [PATCH] Warn about enum_variant_names violations in enum N Clippy fixed the bug in question. --- src/number.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/number.rs b/src/number.rs index 929ddd1..bbdd666 100644 --- a/src/number.rs +++ b/src/number.rs @@ -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),