Skip to content
Myr

Ignore items_after_statements Clippy pedantic lint in test suite

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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

authored by David Tolnay · committed by David Tolnay · parent a7f6089 · Browse files · 1 file+6 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−1 removed

  • tests:+6 added−1 removed

1 file+6 added−1 removed

modified:tests/test_macros.rs+6 added-1 removed
1#![allow(clippy::eq_op, clippy::shadow_unrelated, clippy::wildcard_imports)]1#![allow(2 clippy::eq_op,3 clippy::items_after_statements,4 clippy::shadow_unrelated,5 clippy::wildcard_imports6)]78mod common;910use self::common::*;
59 unmodified lines