Skip to content

Update Cargo.toml 0.6.7 #25

Update Cargo.toml 0.6.7

Update Cargo.toml 0.6.7 #25

Workflow file for this run

name: lints
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
format:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
toolchain: [stable, beta, nightly]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.toolchain }}
components: rustfmt
- name: Run fmt
run: cargo fmt --all
clippy:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
toolchain: [stable, beta, nightly]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.toolchain }}
components: clippy
- name: Run clippy
run: cargo clippy --all-targets -- -D warnings