fix: Setup cargo fmt to check the entire workspace

This commit is contained in:
Karolin Varner
2023-11-17 11:21:53 +01:00
committed by Karolin Varner
parent e50542193f
commit 46156fcb29

View File

@@ -325,7 +325,7 @@
checks = {
cargo-fmt = pkgs.runCommand "check-cargo-fmt"
{ inherit (self.devShells.${system}.default) nativeBuildInputs buildInputs; } ''
cargo fmt --manifest-path=${./.}/Cargo.toml --check && touch $out
cargo fmt --manifest-path=${./.}/Cargo.toml --check --all && touch $out
'';
nixpkgs-fmt = pkgs.runCommand "check-nixpkgs-fmt"
{ nativeBuildInputs = [ pkgs.nixpkgs-fmt ]; } ''