Add pre-commit hook to avoid committing unformatted code

This commit is contained in:
Joscha 2021-11-17 22:53:01 +01:00
parent 2a1560cfb9
commit b89ed3e2df

2
.githooks/pre-commit Executable file
View file

@ -0,0 +1,2 @@
#!/usr/bin/env bash
cargo fmt -- --check