lint: fix mismatched_lifetime_syntaxes (#311)
          
            #1585
        
      
  
    
      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: Code formatting | |
| on: | |
| - push | |
| - pull_request | |
| jobs: | |
| fmt_check: | |
| name: Fmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - 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 rustfmt -y | |
| - name: Check code formatting | |
| run: cargo fmt -- --check |