From: Dale Wijnand Date: Mon, 9 Apr 2018 21:59:31 +0000 (+0100) Subject: Tweak rustfmt details in CONTRIBUTING.md X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~1^2~82^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=87770aeed76c0d7c242a948e841ccd4d678a632c;p=cargo.git Tweak rustfmt details in CONTRIBUTING.md Closes #5329 --- diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7b7663c98..f111ed3cd 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -81,10 +81,9 @@ of helpers to minimize boilerplate. installed locally, 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 is expected to comply with the formatting suggested by `rustfmt`; -discrepancy is considered an error by CI, so a pull request with unsound -formatting will not be accepted. You can use `rustup component add rustfmt-preview` -to install `rustfmt` and use `cargo fmt` to automatically format your code. +* All code changes are expected to comply with the formatting suggested by `rustfmt`. +You can use `rustup component add rustfmt-preview` to install `rustfmt` and use +`cargo fmt` on the changed files to automatically format your code. * Push your commits to GitHub and create a pull request against Cargo's `master` branch.