Skip to content

Commit

Permalink
Ignore enum_variant_names Clippy lint in test suite
Browse files Browse the repository at this point in the history
    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
  • Loading branch information
dtolnay committed Nov 5, 2021
1 parent 4a97386 commit 737f78c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_suite/tests/test_macros.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![deny(trivial_numeric_casts)]
#![allow(clippy::redundant_field_names)]
#![allow(clippy::enum_variant_names, clippy::redundant_field_names)]

mod bytes;

Expand Down

0 comments on commit 737f78c

Please sign in to comment.