Skip to content

Commit

Permalink
Ignore needless_update clippy lint
Browse files Browse the repository at this point in the history
With #[cfg...], sometimes all the fields containing updates are
configured out and that's fine.

    warning: struct update has no effect, all the fields in the struct have already been specified
       --> src/fixup.rs:235:15
        |
    235 |             ..self.leftmost_subexpression()
        |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
        = note: `#[warn(clippy::needless_update)]` on by default
  • Loading branch information
dtolnay committed Jul 8, 2024
1 parent c3e378c commit 628e2f7
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 @@ -285,6 +285,7 @@
clippy::must_use_candidate,
clippy::needless_doctest_main,
clippy::needless_pass_by_value,
clippy::needless_update,
clippy::never_loop,
clippy::range_plus_one,
clippy::redundant_else,
Expand Down

0 comments on commit 628e2f7

Please sign in to comment.