Skip to content

Commit

Permalink
enable Cargo fmt check (#19)
Browse files Browse the repository at this point in the history
* run cargo fmt and fix warnings.
* enable cargo fmt in GitHub Actions
  • Loading branch information
keepsimple1 committed Sep 3, 2022
1 parent 3829abc commit cd8fd65
Show file tree
Hide file tree
Showing 3 changed files with 481 additions and 733 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
run: rustup default 1.46.0
- name: Install clippy
run: rustup component add clippy
- name: Install cargo fmt
run: rustup component add rustfmt
- name: Run cargo fmt and fail if any warnings
run: cargo fmt -- --check
- name: Build
run: cargo build
- name: Run tests
Expand Down
Loading

0 comments on commit cd8fd65

Please sign in to comment.