Skip to content

Commit

Permalink
Fix rustfmt instructions in CONTRIBUTING.md
Browse files Browse the repository at this point in the history
rustfmt's --skip-children is now behind --unstable-features
(rust-lang/rustfmt#2796) which only works on nightly rustfmt, so
change the install instructions too.
  • Loading branch information
dwijnand committed Aug 9, 2018
1 parent 33d2c1b commit ad5610f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ ignore the cross-compile test failures or disable them by
using `CFG_DISABLE_CROSS_TESTS=1 cargo test`. Note that some tests are enabled
only on `nightly` toolchain. If you can, test both toolchains.
* All code changes are expected to comply with the formatting suggested by `rustfmt`.
You can use `rustup +stable component add rustfmt-preview` to install `rustfmt` and use
`rustfmt +stable --skip-children $FILE` on the changed files to automatically format your code.
You can use `rustup component add --toolchain nightly rustfmt-preview` to install `rustfmt` and use
`rustfmt +nightly --unstable-features --skip-children` on the changed files to automatically format your code.
* Push your commits to GitHub and create a pull request against Cargo's
`master` branch.

Expand Down

0 comments on commit ad5610f

Please sign in to comment.