fixed unused warning with latest Rust version #877
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
name: CI | |
on: [push, pull_request] | |
env: | |
RUSTDOCFLAGS: -D warnings | |
RUSTFLAGS: -D warnings | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Build | |
run: | | |
cargo build --workspace --verbose | |
- name: Run tests | |
run: | | |
cargo test --workspace --verbose | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: 1.72.0 | |
components: rustfmt, clippy | |
- name: Check formatting | |
run: | | |
cargo fmt --all --check | |
- name: Clippy lint | |
run: | | |
cargo clippy --all-targets -- -D warnings | |
- name: Check doc | |
run: | | |
cargo doc --workspace --no-deps |