Skip to content

Commit cd8fd65

Browse files
authored
enable Cargo fmt check (#19)
* run cargo fmt and fix warnings. * enable cargo fmt in GitHub Actions
1 parent 3829abc commit cd8fd65

File tree

3 files changed

+481
-733
lines changed

3 files changed

+481
-733
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ jobs:
2222
run: rustup default 1.46.0
2323
- name: Install clippy
2424
run: rustup component add clippy
25+
- name: Install cargo fmt
26+
run: rustup component add rustfmt
27+
- name: Run cargo fmt and fail if any warnings
28+
run: cargo fmt -- --check
2529
- name: Build
2630
run: cargo build
2731
- name: Run tests

0 commit comments

Comments
 (0)