@ -0,0 +1,10 @@
#!/bin/sh
# pre-commit hook
# check formatting
if ! cargo fmt --check --quiet ; then
echo "error: run cargo fmt before committing"
exit 1
else
echo "cargo fmt checked successfully"
fi