Skip to content

Commit 7214e0e

Browse files
committed
Ignore items_after_statements pedantic clippy lint in test
warning: adding items after statements is confusing, since items exist from the start of the scope --> tests/test_transparent.rs:89:5 | 89 | struct WithSource(#[source] io::Error); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements = note: `-W clippy::items-after-statements` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::items_after_statements)]`
1 parent febcc03 commit 7214e0e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test_transparent.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::items_after_statements)]
2+
13
use anyhow::anyhow;
24
use std::error::Error as _;
35
use std::io;

0 commit comments

Comments
 (0)