perf: avoid Vec alloc and double norm_case in pet-hatch hot path (PR … #2222
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: Lint | |
| on: | |
| pull_request: | |
| push: | |
| branches-ignore: | |
| - main | |
| - release* | |
| jobs: | |
| clippy: | |
| name: Clippy and Format Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Rust Tool Chain setup | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| - name: Install clippy | |
| run: rustup component add clippy | |
| - name: Cargo Fetch | |
| run: cargo fetch | |
| - name: Check | |
| run: cargo fmt --all -- --check | |
| - name: Run Clippy | |
| run: cargo clippy --all-features -- -Dwarnings |