Skip to content

Commit

Permalink
Ignore items_after_statements Clippy pedantic lint in test
Browse files Browse the repository at this point in the history
    error: adding items after statements is confusing, since items exist from the start of the scope
       --> tests/test_ensure.rs:324:5
        |
    324 | /     enum E<'a, T> {
    325 | |         #[allow(dead_code)]
    326 | |         T(&'a T),
    327 | |         U,
    328 | |     }
        | |_____^
        |
        = note: `-D clippy::items-after-statements` implied by `-D clippy::pedantic`
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements
  • Loading branch information
dtolnay committed Nov 27, 2021
1 parent 483ef06 commit fa70762
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_ensure.rs
Expand Up @@ -2,6 +2,7 @@
clippy::diverging_sub_expression,
clippy::if_same_then_else,
clippy::ifs_same_cond,
clippy::items_after_statements,
clippy::let_and_return,
clippy::let_underscore_drop,
clippy::match_bool,
Expand Down

0 comments on commit fa70762

Please sign in to comment.