mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Update how to install rustfmt
This commit is contained in:
parent
469af67940
commit
76529b9e64
@ -96,7 +96,7 @@ ignore the cross-compile test failures or disable them by
|
|||||||
using `CFG_DISABLE_CROSS_TESTS=1 cargo test`. Note that some tests are enabled
|
using `CFG_DISABLE_CROSS_TESTS=1 cargo test`. Note that some tests are enabled
|
||||||
only on `nightly` toolchain. If you can, test both toolchains.
|
only on `nightly` toolchain. If you can, test both toolchains.
|
||||||
* All code changes are expected to comply with the formatting suggested by `rustfmt`.
|
* All code changes are expected to comply with the formatting suggested by `rustfmt`.
|
||||||
You can use `rustup component add --toolchain nightly rustfmt-preview` to install `rustfmt` and use
|
You can use `rustup component add --toolchain nightly rustfmt` to install `rustfmt` and use
|
||||||
`rustfmt +nightly --unstable-features --skip-children` on the changed files to automatically format your code.
|
`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
|
* Push your commits to GitHub and create a pull request against Cargo's
|
||||||
`master` branch.
|
`master` branch.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user