Skip to content

Fix clippy warnings #10

Fix clippy warnings

Fix clippy warnings #10

Workflow file for this run

name: Run linters
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: clippy, rustfmt
- name: Use cache
uses: Swatinem/rust-cache@v2
- name: Install cargo binstall
uses: taiki-e/install-action@cargo-binstall
- name: Install cargo check tools
run: |
cargo binstall --locked -y cargo-outdated
cargo binstall --locked -y cargo-udeps
cargo binstall --locked -y cargo-audit
cargo binstall --locked -y cargo-pants
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Run fmt
run: cargo fmt --all -- --check
- name: Run outdated
run: cargo outdated --exit-code 1
- name: Run udeps
run: cargo udeps
- name: Run audit
run: cargo audit
- name: Run pants
run: cargo pants