Fix tool macro detection for separate impl blocks #428
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: Rust Format Check | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- '**.rs' | |
pull_request: | |
branches: [ main ] | |
paths: | |
- '**.rs' | |
jobs: | |
format: | |
name: Check Rust Formatting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt | |
- name: Check formatting | |
run: cargo fmt -- --check |