mirror of
https://github.com/serde-rs/json.git
synced 2026-03-19 16:13:54 +00:00
Merge pull request #383 from xfix/patch-1
Warn about enum_variant_names violations in enum N
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user