Skip to content

Commit

Permalink
Run clippy on benches as well
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 12, 2021
1 parent 7a19c8c commit 22b36c3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
- uses: dtolnay/rust-toolchain@nightly
with:
components: clippy,rustc-dev
- run: cargo clippy --all-features --tests -- -Dclippy::all -Dclippy::pedantic
- run: cargo clippy --all-features --tests --benches -- -Dclippy::all -Dclippy::pedantic

outdated:
name: Outdated
Expand Down
1 change: 1 addition & 0 deletions benches/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#![feature(rustc_private, test)]
#![recursion_limit = "1024"]
#![allow(clippy::missing_panics_doc, clippy::must_use_candidate)]

extern crate test;

Expand Down
1 change: 1 addition & 0 deletions benches/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#![cfg_attr(not(syn_only), feature(rustc_private))]
#![recursion_limit = "1024"]
#![allow(clippy::cast_lossless, clippy::unnecessary_wraps, clippy::useless_vec)]

#[macro_use]
#[path = "../tests/macros/mod.rs"]
Expand Down

0 comments on commit 22b36c3

Please sign in to comment.