Skip to content
Myr

Ignore items_after_statements Clippy pedantic lint in test

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_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

authored by David Tolnay · committed by David Tolnay · parent 483ef06 · Browse files · 1 file+1 added−0 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+1 added−0 removed

  • tests:+1 added−0 removed

1 file+1 added−0 removed

modified:tests/test_ensure.rs+1 added
1#![allow(2 clippy::diverging_sub_expression,3 clippy::if_same_then_else,4 clippy::ifs_same_cond,5 clippy::items_after_statements,6 clippy::let_and_return,7 clippy::let_underscore_drop,8 clippy::match_bool,9 clippy::never_loop,
418 unmodified lines