(main) fix: update code to comply with new clippy lints #158
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 | |
| on: | |
| push: | |
| branches: | |
| - "*" | |
| pull_request: | |
| branches: | |
| - "*" | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| install: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Update toolchain | |
| run: rustup update | |
| - name: Install nightly | |
| run: rustup default nightly | |
| check: | |
| needs: install | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cargo clippy | |
| run: cargo clippy --all -- --verbose -D warnings | |
| build: | |
| needs: install | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cargo build | |
| run: cargo build --release --verbose | |
| test: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run tests | |
| run: cargo test --verbose | |
| doc: | |
| needs: install | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check doc | |
| run: RUSTDOCFLAGS="-D warnings" cargo doc --document-private-items --all --verbose --release | |
| fmt: | |
| needs: install | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check doc | |
| run: cargo fmt -- --check | |
| coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install tarpaulin | |
| run: cargo install cargo-tarpaulin | |
| - name: Check coverage | |
| run: cargo tarpaulin --fail-under 80 |