huellas/hooks/pre-commit.sh

12 lines
151 B
Bash
Raw Normal View History

2023-11-18 21:27:19 -03:00
#!/bin/bash
set -eu
if ! cargo fmt -- --check
then
echo "There are some code style issues."
echo "Run cargo fmt first."
exit 1
fi
exit 0