Add pre-commit hook to avoid committing unformatted code
This commit is contained in:
parent
2a1560cfb9
commit
b89ed3e2df
1 changed files with 2 additions and 0 deletions
2
.githooks/pre-commit
Executable file
2
.githooks/pre-commit
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env bash
|
||||
cargo fmt -- --check
|
||||
Loading…
Add table
Add a link
Reference in a new issue