From ca31742394fda061b9ca3ff5e3dae6de3aafa07c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Marcos=20P=2E=20Bezerra?= Date: Sun, 17 Nov 2024 14:51:33 -0300 Subject: [PATCH] run clippy for tests too --- .github/workflows/build-and-test.yml | 1 + tests/integration.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 861707b..752db32 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -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: diff --git a/tests/integration.rs b/tests/integration.rs index 82315c3..ed2b4b1 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -79,7 +79,7 @@ fn create_random_files(dir: impl Into, 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); } }