fix: Show cargo fmt errors

This commit is contained in:
Karolin Varner
2023-05-23 20:31:14 +02:00
committed by Karolin Varner
parent 5f78857ff5
commit 78e32a6f14

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 > $out
cargo fmt --manifest-path=${./.}/Cargo.toml --check && touch $out
'';
nixpkgs-fmt = pkgs.runCommand "check-nixpkgs-fmt"
{ nativeBuildInputs = [ pkgs.nixpkgs-fmt ]; } ''