diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index bbba1e2..bf91b19 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -7,7 +7,7 @@ jobs: - uses: actions/checkout@v7 - uses: dtolnay/rust-toolchain@nightly with: - components: clippy + components: rustfmt, clippy - uses: extractions/setup-just@v4 - run: cargo fmt --check - run: cargo clippy diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index c49c175..4e48df0 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -15,8 +15,10 @@ jobs: restore-keys: | fuzz-corpus- - run: cargo install cargo-fuzz - - run: cargo fuzz run main -- -max_total_time=3600 -rss_limit_mb=4096 - - run: cargo fuzz cmin main + - run: | + cargo fuzz run main --fuzz-dir . -- \ + -max_total_time=3600 -rss_limit_mb=4096 + - run: cargo fuzz cmin main --fuzz-dir . if: always() - uses: actions/cache/save@v6 if: always() diff --git a/fuzz_targets/main.rs b/fuzz_targets/main.rs index 9b756d4..adff372 100644 --- a/fuzz_targets/main.rs +++ b/fuzz_targets/main.rs @@ -152,6 +152,7 @@ fn test_with_inline_cap( for op in ops { match op { + #[allow(clippy::new_instead_of_clear)] Op::New => { small_vec = SmallVec::new(); std_vec = Vec::new();