From 05e413219e97f101d8f39a90902e5c5d39f951fe Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 21 Oct 2023 21:54:51 -0700 Subject: [PATCH] Ignore struct_field_names pedantic clippy lint warning: all fields have the same prefix: `object` --> src/error.rs:595:1 | 595 | / struct ErrorVTable { 596 | | object_drop: unsafe fn(Own), 597 | | object_ref: unsafe fn(Ref) -> Ref, 598 | | #[cfg(all(feature = "std", anyhow_no_ptr_addr_of))] ... | 606 | | object_backtrace: unsafe fn(Ref) -> Option<&Backtrace>, 607 | | } | |_^ | = help: remove the prefixes = 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)]` --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 5ec17ad..79faa27 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -229,6 +229,7 @@ clippy::new_ret_no_self, clippy::redundant_else, clippy::return_self_not_must_use, + clippy::struct_field_names, clippy::unused_self, clippy::used_underscore_binding, clippy::wildcard_imports,