chore: make pre-commit do formatting (#653)
This commit is contained in:
parent
3eb4c384d3
commit
a1c66a8a36
1 changed files with 5 additions and 0 deletions
5
.githooks/pre-commit
Executable file
5
.githooks/pre-commit
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
cargo +nightly fmt --all
|
||||
|
||||
# stage any formatting changes
|
||||
git add -u
|
||||
Loading…
Reference in a new issue