commit - 771900b15631ac2a32cf60bf9bd16eaf88815c0c
commit + 62f59f2d25e82b1e7e20f54dffa7bf2b0ea635a9
blob - 1ba8f2fc9dc743be894cbbf3b6b7107a55ab8383
blob + cb1f8f84db4ccf17593d79a453450ed9543545d5
--- contrib/githooks/pre-commit
+++ contrib/githooks/pre-commit
if cargo fmt -- --check; then
echo "format passed"
else
- echo "code isn't formatted correctly - please format with `cargo fmt`"
+ echo "code isn't formatted correctly - please format with 'cargo fmt'"
exit 1
fi
if cargo clippy -- -D warnings; then
echo "linter passed"
else
- echo "linter found warnings - please check with `cargo clippy`"
+ echo "linter found warnings - please check with 'cargo clippy'"
exit 1
fi