Enforce rustfmt on CI & clean up some let-else format errors

This commit is contained in:
Julia 2023-02-20 13:23:25 -05:00
parent 2982a98d1c
commit bda37ffb9c
3 changed files with 34 additions and 9 deletions

View file

@ -17,6 +17,24 @@ env:
RUST_BACKTRACE: 1
jobs:
rustfmt:
name: Check formatting
runs-on: self-hosted
steps:
- name: Install Rust
run: |
rustup set profile minimal
rustup update stable
- name: Checkout repo
uses: actions/checkout@v2
with:
clean: false
submodules: 'recursive'
- name: cargo fmt
run: cargo fmt --all -- --check
tests:
name: Run tests
runs-on: