Skip to content

Instantly share code, notes, and snippets.

@miguelraz
Created July 20, 2025 17:43
Show Gist options
  • Save miguelraz/845d02f4c27464bb72d8dcd46c69361c to your computer and use it in GitHub Desktop.
Save miguelraz/845d02f4c27464bb72d8dcd46c69361c to your computer and use it in GitHub Desktop.
#!/bin/sh
set -eu
if ! cargo fmt -- --check
then
echo "There are some code style issues."
echo "Run `cargo fmt` first."
exit 1
fi
if ! cargo clippy --all-targets -- -D warnings
then
echo "There are some clippy issues."
exit 1
fi
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment