Skip to content

Commit

Permalink
Enforce Rust code format on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
luckysori committed Apr 5, 2024
1 parent cce42ce commit 883ad23
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ jobs:
run: rustup component add clippy
- name: Run clippy
run: cargo clippy -- -D warnings
fmt:
name: rustfmt-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Check format
run: cargo fmt --all --check
no-std:
name: no-std lint
runs-on: ubuntu-latest
Expand Down

0 comments on commit 883ad23

Please sign in to comment.