We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rustfmt
pre-commit
1 parent 53ceb2f commit e268941Copy full SHA for e268941
.gitignore
@@ -8,4 +8,4 @@ Cargo.lock
8
*.sage.py
9
params
10
*.swp
11
-*.swo
+*.swo
.hooks/pre-commit
@@ -1,6 +1,6 @@
1
#!/usr/bin/env bash
2
3
-if rustfmt --version &>/dev/null; then
+if ! command -v rustfmt &> /dev/null; then
4
printf "[pre_commit] \033[0;31merror\033[0m: \"rustfmt\" not available. \n"
5
printf "[pre_commit] \033[0;31merror\033[0m: rustfmt can be installed via - \n"
6
printf "[pre_commit] $ rustup component add rustfmt \n"
0 commit comments