1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-31 12:37:45 +00:00

Merge pull request #14 from blaggacao/main

fixup: re-add cargo & treefmt
This commit is contained in:
Kevin Amado 2022-01-30 19:48:31 -05:00 committed by GitHub
commit 9e9af04f53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -65,6 +65,7 @@
name = "Alejandra";
packages = [
fenix.rust-analyzer
fenix.latest.cargo
fenix.latest.clippy
fenix.latest.rust-src
fenix.latest.rustc
@ -75,6 +76,7 @@
nixpkgs.nodePackages.prettier
nixpkgs.nodePackages.prettier-plugin-toml
nixpkgs.shfmt
treefmt
];
};
}

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
if git rev-parse --verify HEAD >/dev/null 2>&1; then
if git rev-parse --verify HEAD > /dev/null 2>&1; then
against=HEAD
else
# Initial commit: diff against an empty tree object
@ -21,5 +21,3 @@ if [[ $? != '0' ]]; then
"Review the output and commit your fixes" >&2
exit 1
fi