chore: removed unused val + fixed while loop conditional #74
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust Formatter | |
on: [push, pull_request] | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install rustfmt | |
run: rustup component add rustfmt | |
- name: Check formatting | |
run: | | |
cargo fmt -- --check | |
if [ $? -ne 0 ]; then | |
echo "Code formatting issues found. Please run 'cargo fmt' locally to fix them." | |
exit 1 | |
fi |