From 3079e8aee6581d06ac0c117a6ceeeba61e5ffeca Mon Sep 17 00:00:00 2001 From: Graham McInitre Date: Mon, 20 Jul 2026 19:52:18 -0500 Subject: [PATCH] fix: point cargo pre-commit hooks at rust/prop_grid_rs/Cargo.toml The cargo clippy and cargo fmt hooks ran from the repo root but the Rust project lives in rust/prop_grid_rs/. Add --manifest-path so they find the Cargo.toml and actually run. --- nix/shell.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nix/shell.nix b/nix/shell.nix index 4eb0fe6f..bdf745b9 100644 --- a/nix/shell.nix +++ b/nix/shell.nix @@ -144,11 +144,11 @@ let pass_filenames = false; }; - # Rust formatting and linting + # Rust formatting and linting (project lives in rust/prop_grid_rs/) cargo-fmt = { enable = true; name = "cargo fmt"; - entry = "cargo fmt --all --check"; + entry = "cargo fmt --manifest-path rust/prop_grid_rs/Cargo.toml --all --check"; files = "\\.rs$"; pass_filenames = false; }; @@ -156,7 +156,7 @@ let cargo-clippy = { enable = true; name = "cargo clippy"; - entry = "cargo clippy --all-targets -- -D warnings"; + entry = "cargo clippy --manifest-path rust/prop_grid_rs/Cargo.toml --all-targets -- -D warnings"; files = "\\.rs$"; pass_filenames = false; };