run cargo fmt on everything (#59)

* run cargo fmt on everything

* standard rustfmt.toml

* format with nightly toolchain

* format in CI

* fix issue

* fix hf_xet
This commit is contained in:
Assaf Vayner
2024-10-23 17:57:45 -07:00
committed by GitHub
parent de9339d4c7
commit da07266034
120 changed files with 1526 additions and 2968 deletions

View File

@@ -10,8 +10,22 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
fmt:
name: Rustfmt
runs-on:
group: cpu-low
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: rustfmt
- name: Format
run: |
cargo fmt --manifest-path ./Cargo.toml --all -- --check
cargo fmt --manifest-path ./hf_xet/Cargo.toml --all -- --check
build_and_test:
runs-on:
group: cpu-high