feat: auto-detect imperative for/while/loop in preamble #2383
Workflow file for this run
This file contains hidden or 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: cargo fmt | |
| on: | |
| pull_request: | |
| paths: | |
| - "**/*.rs" | |
| push: | |
| branches: [master] | |
| paths: | |
| - "**/*.rs" | |
| jobs: | |
| format: | |
| name: cargo fmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup toolchain | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: nightly | |
| components: rustfmt | |
| - name: Run fmt | |
| run: cargo +nightly fmt --all -- --check |