Skip to content

Fix clippy::needless_borrows_for_generic_args lints (#77) #96

Fix clippy::needless_borrows_for_generic_args lints (#77)

Fix clippy::needless_borrows_for_generic_args lints (#77) #96

Workflow file for this run

name: Rust
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
check:
name: Rust Format and Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
target: wasm32-unknown-unknown
- run: cargo fmt -- --check
- run: cargo clippy --locked --all-targets -- -D warnings
- run: cargo check --locked --target wasm32-unknown-unknown
- run: cargo clippy --locked --all-features --all-targets -- -D warnings
- run: cargo doc --no-deps
env:
RUSTDOCFLAGS: '-D warnings'