run clippy for tests too

This commit is contained in:
João Marcos P. Bezerra 2024-11-17 14:51:33 -03:00 committed by João Marcos
parent e7d6c5e0f5
commit ca31742394
2 changed files with 2 additions and 1 deletions

View File

@ -134,6 +134,7 @@ jobs:
rustup toolchain install stable --profile minimal -c clippy
rustup toolchain install nightly --profile minimal -c rustfmt
cargo +stable clippy -- -D warnings
cargo +stable clippy --tests -- -D warnings
cargo +nightly fmt -- --check
github-release:

View File

@ -79,7 +79,7 @@ fn create_random_files(dir: impl Into<PathBuf>, depth: u8, rng: &mut SmallRng) {
// create more random files in 0 to 2 new directories
for _ in 0..rng.gen_range(0..=2u32) {
create_random_files(&tempfile::tempdir_in(dir).unwrap().into_path(), depth - 1, rng);
create_random_files(tempfile::tempdir_in(dir).unwrap().into_path(), depth - 1, rng);
}
}