Skip to content

Commit a1c66a8

Browse files
authored
chore: make pre-commit do formatting (#653)
1 parent 3eb4c38 commit a1c66a8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.githooks/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
cargo +nightly fmt --all
3+
4+
# stage any formatting changes
5+
git add -u

0 commit comments

Comments
 (0)