Skip to content

Fix clippy

Fix clippy #36

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
- name: cargo check
uses: actions-rs/cargo@v1
with:
command: check
- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
- name: cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- name: cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check