Skip to content

Commit

Permalink
Ignore ignored_unit_patterns pedantic clippy lint in test suite
Browse files Browse the repository at this point in the history
    warning: matching over `()` is more explicit
       --> tests/test_ensure.rs:710:34
        |
    710 |     let test = || Ok(ensure!(for _ in iter::once(()) {} != ()));
        |                                  ^ help: use `()` instead of `_`: `()`
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
        = note: `-W clippy::ignored-unit-patterns` implied by `-W clippy::pedantic`
  • Loading branch information
dtolnay committed Aug 12, 2023
1 parent 7fc0c07 commit 496b958
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_ensure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
clippy::extra_unused_type_parameters,
clippy::if_same_then_else,
clippy::ifs_same_cond,
clippy::ignored_unit_patterns,
clippy::items_after_statements,
clippy::let_and_return,
clippy::let_underscore_untyped,
Expand Down

0 comments on commit 496b958

Please sign in to comment.