Skip to content

Commit

Permalink
Run clippy before fmt
Browse files Browse the repository at this point in the history
When running locally, do clippy first and then fmt because clippy
rewrites do not always satisfy fmt.
  • Loading branch information
rikhuijzer committed Jan 23, 2024
1 parent 12fc00f commit 3f25627
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ jobs:
- name: Rust cache
uses: Swatinem/rust-cache@v2

- name: Cargo fmt
run: cargo fmt --all --check

- name: Cargo clippy
run: cargo clippy --all-targets --all-features -- -D warnings

- name: Cargo fmt
run: cargo fmt --all --check

- name: Cargo test
run: cargo test

Expand Down

0 comments on commit 3f25627

Please sign in to comment.