Clippy

Linter for Rust.

You can install Clippy with rustup like so:

rustup component add clippy

and then run it like this:

cargo clippy --workspace -- --deny warnings

See also High Assurance Rust#Clippy.

Github Actions

To run Clippy in Github Actions:

  lint:
    runs-on: ubuntu-latest
    steps:

    - uses: actions/checkout@v3

    - name: Deps
      run: |
        rustup update
        rustup component add clippy

    - name: Lint
      run: cargo clippy --workspace -- --deny warnings