Skip to content

Commit 616a388

Browse files
Check clippy in CI
1 parent 9586b7f commit 616a388

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.circleci/config.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@ jobs:
5353
command: |
5454
rustup component add rustfmt
5555
cargo fmt -- --check
56+
- run:
57+
name: Check clippy lints
58+
# we only care about stable clippy -- nightly clippy is a bit wild
59+
command: |
60+
if [[ '<< parameters.toolchain_override >>' == 'stable' ]]
61+
then
62+
rustup component add clippy
63+
cargo clippy --all-targets
64+
fi
5665
- run:
5766
name: Build all targets
5867
command: cargo build --all-targets

clippy.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
msrv = "1.47.0"

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@
8686
warnings
8787
)]
8888
#![forbid(unsafe_code)]
89+
// Allow globally until https://github.com/rust-lang/rust-clippy/issues/8768 is resolved.
90+
// The desired state is to allow it only for the rstest_reuse import.
91+
#![allow(clippy::single_component_path_imports)]
8992
#![cfg_attr(not(any(feature = "std", test)), no_std)]
9093

9194
#[cfg(all(feature = "alloc", not(any(feature = "std", test))))]

0 commit comments

Comments
 (0)