Fix some clippy issues. #317
This file contains 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
# Quickstart CI workflow | |
# | |
# This workflow installs latest stable Rust version | |
# and invokes these commands in parallel: | |
# | |
# * `cargo check` | |
# * `cargo test` | |
# * [`cargo fmt`](https://github.com/rust-lang/rustfmt) | |
# * [`cargo clippy`](https://github.com/rust-lang/rust-clippy) | |
on: [push, pull_request] | |
name: Continuous integration | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- run: cargo check --workspace --all-features | |
build: | |
name: Build (stable) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- run: cargo build --workspace --all-features | |
test: | |
name: Test Suite (Rust stable) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- run: cargo test --workspace --all-features | |
fmt: | |
name: Rustfmt (stable) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- run: cargo fmt --all --check | |
clippy: | |
name: Clippy (stable) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- run: cargo clippy --workspace -- -D warnings |