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 7e4e5cf commit 9060ac3
Show file tree
Hide file tree
Showing 2 changed files with 6 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 @@ -40,4 +40,4 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@clippy
- run: cargo clippy --tests -- -Dclippy::all -Dclippy::pedantic
- run: cargo clippy --tests --benches -- -Dclippy::all -Dclippy::pedantic
5 changes: 5 additions & 0 deletions benches/bench.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#![feature(test)]
#![allow(
clippy::approx_constant,
clippy::excessive_precision,
clippy::unreadable_literal
)]

extern crate test;

Expand Down

0 comments on commit 9060ac3

Please sign in to comment.