From aea3cdf60b21b9894b1b44b03b5a00a09444b201 Mon Sep 17 00:00:00 2001 From: Nathaniel McCallum Date: Tue, 3 Nov 2026 12:27:16 -0500 Subject: [PATCH 1/2] build: enforce fuzz module layout Deny self-named parent module files in the standalone fuzz package. It has its own workspace and does not inherit the main crate lints. --- fuzz/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index e9b31a5..32d8ec5 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -40,3 +40,6 @@ path = "fuzz_targets/fuzz_owned.rs" test = false doc = false bench = false + +[lints.clippy] +self_named_module_files = "deny" From 620f962dc0801b6b1b8b1f2b9a09bab91a3bdbd8 Mon Sep 17 00:00:00 2001 From: Nathaniel McCallum Date: Tue, 3 Nov 2026 12:27:16 -0500 Subject: [PATCH 2/2] ci: lint the fuzz targets Run Clippy on every fuzz target and feature in the existing CI job. The main-crate Clippy command does not cover this separate workspace. --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a8bcc71..f9e2efd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,4 +56,5 @@ jobs: - uses: Swatinem/rust-cache@v2 - run: cargo fmt --all -- --check - run: cargo clippy --all-targets --all-features + - run: cargo clippy --manifest-path fuzz/Cargo.toml --all-targets --all-features - run: cargo test --all-targets --all-features