Skip to content

fixed linter

fixed linter #2

Workflow file for this run

name: Lint
on:
push:
branches:
- master
pull_request:
env:
CARGO_TERM_COLOR: always
RUST_TOOLCHAIN: "1.66.1"
defaults:
run:
working-directory: ./
jobs:
lint:
name: Linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust nightly
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: rustfmt, clippy
cache: true
- name: Cache dependencies
uses: Swatinem/rust-cache@v1
- name: Run fmt
run: cargo fmt -- --check
- name: Run clippy
run: cargo clippy --all-targets --all-features --workspace -- -D warnings --allow=clippy::result_large_err --allow=clippy::await_holding_refcell_ref