Skip to content

Commit

Permalink
Ignore non_minimal_cfg clippy lint in test
Browse files Browse the repository at this point in the history
    error: unneeded sub `cfg` when there is no condition
        --> tests/test.rs:1481:66
         |
    1481 |         async fn cfg_param(&self, #[cfg(any())] param: u8, #[cfg(all())] _unused: u8) {}
         |                                                                  ^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_minimal_cfg
         = note: `-D clippy::non-minimal-cfg` implied by `-D clippy::all`

    error: unneeded sub `cfg` when there is no condition
        --> tests/test.rs:1483:71
         |
    1483 |         async fn cfg_param_wildcard(&self, #[cfg(any())] _: u8, #[cfg(all())] _: u8) {}
         |                                                                       ^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_minimal_cfg

    error: unneeded sub `cfg` when there is no condition
        --> tests/test.rs:1488:19
         |
    1488 |             #[cfg(all())] (_left, _right): (u8, u8),
         |                   ^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_minimal_cfg
  • Loading branch information
dtolnay committed May 23, 2023
1 parent 49cdc5f commit 486fe7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
clippy::missing_panics_doc,
clippy::missing_safety_doc,
clippy::needless_return,
clippy::non_minimal_cfg,
clippy::trivially_copy_pass_by_ref,
clippy::unused_async
)]
Expand Down

0 comments on commit 486fe7e

Please sign in to comment.