Skip to content

Commit

Permalink
Ignore items_after_statements Clippy pedantic lint in test suite
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_macros.rs:60:5
       |
    60 | /     fn message(cell: Cell<&str>) -> &str {
    61 | |         cell.get()
    62 | |     }
       | |_____^
       |
       = 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 4, 2021
1 parent a7f6089 commit 636bed6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_macros.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#![allow(clippy::eq_op, clippy::shadow_unrelated, clippy::wildcard_imports)]
#![allow(
clippy::eq_op,
clippy::items_after_statements,
clippy::shadow_unrelated,
clippy::wildcard_imports
)]

mod common;

Expand Down

0 comments on commit 636bed6

Please sign in to comment.