Skip to content

Commit

Permalink
Ignore struct_field_names pedantic clippy lint
Browse files Browse the repository at this point in the history
    warning: all fields have the same prefix: `object`
       --> src/error.rs:595:1
        |
    595 | / struct ErrorVTable {
    596 | |     object_drop: unsafe fn(Own<ErrorImpl>),
    597 | |     object_ref: unsafe fn(Ref<ErrorImpl>) -> Ref<dyn StdError + Send + Sync + 'static>,
    598 | |     #[cfg(all(feature = "std", anyhow_no_ptr_addr_of))]
    ...   |
    606 | |     object_backtrace: unsafe fn(Ref<ErrorImpl>) -> 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)]`
  • Loading branch information
dtolnay committed Oct 22, 2023
1 parent 98921f8 commit 05e4132
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 05e4132

Please sign in to comment.