Skip to content

all: Port to satisfy latest clippy #105

all: Port to satisfy latest clippy

all: Port to satisfy latest clippy #105

Workflow file for this run

on: [pull_request]
name: lint
jobs:
fmt:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@master
with:
components: rustfmt
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
name: cargo clippy
strategy:
matrix:
platform: [
ubuntu-latest,
macos-latest,
windows-latest
]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@master
with:
components: clippy
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings