Skip to content

"borrow checker invariants" section of the "leveraging the type system" chapter #231

"borrow checker invariants" section of the "leveraging the type system" chapter

"borrow checker invariants" section of the "leveraging the type system" chapter #231

Workflow file for this run

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@v5
- 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@v5
- 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/[email protected]
typos:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Check for typos
uses: crate-ci/[email protected]
with:
config: ./.github/typos.toml