From e9ea67c7e251764c3c2d839b6c06d9f35b154647 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 21 Oct 2023 21:36:54 -0700 Subject: [PATCH] Ignore struct_field_names pedantic clippy lint warning: field name ends with the struct's name --> impl/src/attr.rs:23:5 | 23 | pub has_bonus_display: bool, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#struct_field_names = note: `-W clippy::struct-field-names` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::struct_field_names)]` --- impl/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/impl/src/lib.rs b/impl/src/lib.rs index cc86dc4..3995178 100644 --- a/impl/src/lib.rs +++ b/impl/src/lib.rs @@ -11,6 +11,7 @@ clippy::option_if_let_else, clippy::range_plus_one, clippy::single_match_else, + clippy::struct_field_names, clippy::too_many_lines, clippy::wrong_self_convention )]