Skip to content

Fix lint

Fix lint #4

Workflow file for this run

name: lint
on:
push:
branches:
- main
pull_request:
jobs:
clippy-and-fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: ./.github/actions/cache
- run: rustup component add rustfmt
- name: fmt
run: |
cargo fmt --all -- --check
- name: clippy
# Check by `clippy` even if the previous step fails
if: success() || failure()
run: |
cargo clippy --all -- -D warnings