Skip to content

Suppress redundant_field_names clippy lint - #454

Merged
dtolnay merged 1 commit into
masterfrom
clippy
Aug 8, 2026
Merged

Suppress redundant_field_names clippy lint#454
dtolnay merged 1 commit into
masterfrom
clippy

Conversation

@dtolnay

@dtolnay dtolnay commented Aug 8, 2026

Copy link
Copy Markdown
Owner

New clippy lint in nightly-2026-08-08.

warning: redundant field names in struct initialization
  --> tests/test_from.rs:9:5
   |
 9 | /     #[from]
10 | |     source: io::Error,
   | |__________^ help: replace it with: `source`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
   = note: `-W clippy::redundant-field-names` implied by `-W clippy::all`
   = help: to override `-W clippy::all` add `#[allow(clippy::redundant_field_names)]`

warning: redundant field names in struct initialization
  --> tests/test_from.rs:32:9
   |
32 | /         #[from]
33 | |         source: io::Error,
   | |______________^ help: replace it with: `source`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names

warning: redundant field names in struct initialization
   --> tests/test_generics.rs:145:5
    |
145 | /     #[from]
146 | |     pub source: StructDebugGeneric<E>,
    | |______________^ help: replace it with: `source`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
    = note: `-W clippy::redundant-field-names` implied by `-W clippy::all`
    = help: to override `-W clippy::all` add `#[allow(clippy::redundant_field_names)]`

    warning: redundant field names in struct initialization
      --> tests/test_from.rs:9:5
       |
     9 | /     #[from]
    10 | |     source: io::Error,
       | |__________^ help: replace it with: `source`
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
       = note: `-W clippy::redundant-field-names` implied by `-W clippy::all`
       = help: to override `-W clippy::all` add `#[allow(clippy::redundant_field_names)]`

    warning: redundant field names in struct initialization
      --> tests/test_from.rs:32:9
       |
    32 | /         #[from]
    33 | |         source: io::Error,
       | |______________^ help: replace it with: `source`
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names

    warning: redundant field names in struct initialization
       --> tests/test_generics.rs:145:5
        |
    145 | /     #[from]
    146 | |     pub source: StructDebugGeneric<E>,
        | |______________^ help: replace it with: `source`
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
        = note: `-W clippy::redundant-field-names` implied by `-W clippy::all`
        = help: to override `-W clippy::all` add `#[allow(clippy::redundant_field_names)]`
@dtolnay
dtolnay merged commit c4c3ebd into master Aug 8, 2026
19 checks passed
@dtolnay
dtolnay deleted the clippy branch August 8, 2026 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant