Skip to content

Make cargo check pass without warning on Rust 1.82.0 #2

Make cargo check pass without warning on Rust 1.82.0

Make cargo check pass without warning on Rust 1.82.0 #2

Workflow file for this run

name: CI
on: [push, pull_request]
env:
RUSTFLAGS: -D warnings
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
jobs:
unit-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- run: cargo fmt -- --check