Recommend running rustfmt last (#3733)

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.
This commit is contained in:
Florian Gilcher 2019-08-09 10:42:50 +02:00 committed by Seiichi Uchida
parent c1d20e8e6e
commit e653ff03e9

View File

@ -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)