mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
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:
parent
c1d20e8e6e
commit
e653ff03e9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user