Skip to content

Commit 6c4aba5

Browse files
committed
Run clippy on test suite too
1 parent dcbfb23 commit 6c4aba5

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ jobs:
4545
steps:
4646
- uses: actions/checkout@v2
4747
- uses: dtolnay/rust-toolchain@clippy
48-
- run: cargo clippy -- -Dclippy::all -Dclippy::pedantic
48+
- run: cargo clippy --tests -- -Dclippy::all -Dclippy::pedantic

tests/test.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
#![cfg_attr(feature = "cargo-clippy", allow(blacklisted_name))]
1+
#![cfg_attr(
2+
feature = "cargo-clippy",
3+
allow(
4+
blacklisted_name,
5+
let_underscore_drop,
6+
shadow_unrelated,
7+
unseparated_literal_suffix,
8+
used_underscore_binding
9+
)
10+
)]
211

312
use std::borrow::Cow;
413
use std::collections::BTreeSet;

0 commit comments

Comments
 (0)