Fix mismatched_lifetime_syntaxes lint errors #1582
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: Clippy | |
| on: | |
| - push | |
| - pull_request | |
| jobs: | |
| clippy_check: | |
| name: Clippy | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - macos-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Cache | |
| uses: actions/cache@v4 | |
| timeout-minutes: 2 | |
| continue-on-error: true | |
| if: matrix.os != 'macos-latest' # Cache causes errors on macOS | |
| with: | |
| path: | | |
| ~/.cargo | |
| target | |
| key: ${{ github.job }}-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ github.job }}-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-${{ hashFiles('**/Cargo.lock') }} | |
| ${{ github.job }}-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}- | |
| - name: Install Rust | |
| shell: bash | |
| run: | | |
| installer=$(mktemp -d)/install-rustup | |
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > $installer | |
| bash $installer --default-toolchain $(cat rust-toolchain) --component clippy -y | |
| - name: Use clippy to lint code (dev) | |
| env: | |
| FMT: 'false' | |
| LINT: 'true' | |
| DOC: 'false' | |
| BUILD: 'false' | |
| TEST: 'false' | |
| run: ./test.sh | |
| - name: Use clippy to lint code (release) | |
| env: | |
| FMT: 'false' | |
| LINT: 'true' | |
| DOC: 'false' | |
| BUILD: 'false' | |
| TEST: 'false' | |
| run: ./test.sh |