Skip to content

Commit

Permalink
Recommend running rustfmt last (#3733)
Browse files Browse the repository at this point in the history
As rustfmt checks fail, they might hide errors of more importance.
Running it last makes sure that the serious bugs have been found and is less frustrating.
  • Loading branch information
skade authored and topecongiro committed Aug 9, 2019
1 parent c1d20e8 commit e653ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -136,9 +136,9 @@ language: rust
before_script:
- rustup component add rustfmt
script:
- cargo fmt --all -- --check
- cargo build
- cargo test
- cargo fmt --all -- --check
```

See [this blog post](https://medium.com/@ag_dubs/enforcing-style-in-ci-for-rust-projects-18f6b09ec69d)
Expand Down

0 comments on commit e653ff0

Please sign in to comment.