Fix clippy::useless_borrows_in_formatting warnings in modules exercise #897
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| clippy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Setup Rust cache | |
| uses: ./.github/workflows/setup-rust-cache | |
| - name: Clippy | |
| run: cargo clippy -- -Dwarnings | |
| format: | |
| runs-on: ubuntu-latest | |
| env: | |
| NIGHTLY_VERSION: nightly-2025-09-01 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Install formatting dependencies | |
| uses: ./.github/workflows/apt-get-install | |
| with: | |
| packages: gettext yapf3 | |
| - name: Install pinned nightly for rustfmt | |
| run: | | |
| rustup toolchain install --profile minimal "$NIGHTLY_VERSION" | |
| rustup component add rustfmt --toolchain "$NIGHTLY_VERSION" | |
| - name: Check formatting | |
| uses: dprint/check@v2.3 | |
| typos: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Check for typos | |
| uses: crate-ci/typos@v1.48.0 | |
| with: | |
| config: ./.github/typos.toml | |
| lockfiles: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Setup Bazel cache | |
| uses: ./.github/workflows/setup-bazel-cache | |
| - name: Setup Rust cache | |
| uses: ./.github/workflows/setup-rust-cache | |
| - name: Check Cargo lockfile | |
| run: cargo update --workspace --locked | |
| - name: Check Bazel lockfile | |
| run: bazel mod deps --lockfile_mode=error |