Skip to content

simplify logic

simplify logic #1020

Workflow file for this run

name: Rust Format Check
on:
workflow_dispatch:
push:
branches:
- "**" # match any branch
env:
CARGO_TERM_COLOR: always
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
override: true
- name: Run rustfmt
run: cargo fmt --all -- --check
- name: Run cargo check
run: cargo check --all-targets