From 51521047322212f7eea89a1afa9d220a2953bb71 Mon Sep 17 00:00:00 2001 From: Nathaniel McCallum Date: Sat, 31 Oct 2026 10:35:11 -0400 Subject: [PATCH] build: deny self-named module files Turn on clippy's self_named_module_files check as an error. Clippy is Rust's code checker. A module is a named part of the code, usually a file or a folder, and a crate is a Rust package. With this check, a module that has its own folder puts its code in foo/mod.rs inside that folder, not in a foo.rs file beside it. Every pichi-vm crate uses this same layout. No source files use the rejected layout. Fixes #5 --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index 377f33d..b47bd88 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,6 +25,7 @@ unreachable_pub = "warn" [lints.clippy] all = { level = "warn", priority = -1 } pedantic = { level = "warn", priority = -1 } +self_named_module_files = "deny" module_name_repetitions = "allow" missing_errors_doc = "allow" must_use_candidate = "allow"