Skip to content

Commit

Permalink
Run clippy on test suite too
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Sep 30, 2021
1 parent dcbfb23 commit 6c4aba5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@clippy
- run: cargo clippy -- -Dclippy::all -Dclippy::pedantic
- run: cargo clippy --tests -- -Dclippy::all -Dclippy::pedantic
11 changes: 10 additions & 1 deletion tests/test.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#![cfg_attr(feature = "cargo-clippy", allow(blacklisted_name))]
#![cfg_attr(
feature = "cargo-clippy",
allow(
blacklisted_name,
let_underscore_drop,
shadow_unrelated,
unseparated_literal_suffix,
used_underscore_binding
)
)]

use std::borrow::Cow;
use std::collections::BTreeSet;
Expand Down

0 comments on commit 6c4aba5

Please sign in to comment.