From 737f78c3156a23b9a0dd1affdee1e8b812f6ebac Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 4 Nov 2021 20:05:54 -0700 Subject: [PATCH] Ignore enum_variant_names Clippy lint in test suite error: all variants have the same prefix: `Serialize` --> test_suite/tests/test_macros.rs:1741:5 | 1741 | / enum E { 1742 | | #[serde(rename_all = "camelCase")] 1743 | | Serialize { 1744 | | serialize: bool, ... | 1756 | | }, 1757 | | } | |_____^ | = note: `-D clippy::enum-variant-names` implied by `-D clippy::all` = help: remove the prefixes and use full paths to the variants instead of glob imports = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names --- test_suite/tests/test_macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_suite/tests/test_macros.rs b/test_suite/tests/test_macros.rs index fea59e0e..554e5449 100644 --- a/test_suite/tests/test_macros.rs +++ b/test_suite/tests/test_macros.rs @@ -1,5 +1,5 @@ #![deny(trivial_numeric_casts)] -#![allow(clippy::redundant_field_names)] +#![allow(clippy::enum_variant_names, clippy::redundant_field_names)] mod bytes;