From 76529b9e64334a1a988556ce38a2f48b88360f19 Mon Sep 17 00:00:00 2001 From: Hidehito Yabuuchi Date: Sat, 23 Feb 2019 19:30:05 +0900 Subject: [PATCH] Update how to install rustfmt --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 929289e19..44e741952 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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 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 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. * Push your commits to GitHub and create a pull request against Cargo's `master` branch.