name: lint
on:
workflow_call:
permissions:
contents: read
jobs:
lint-rust:
name: Rust Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
# - name: Rust Format
# run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --all --all-features -- -D warnings