To install:
```
-rustup component add rustfmt-preview
+rustup component add rustfmt
```
to run on a cargo project in the current working directory:
For the latest and greatest `rustfmt` (nightly required):
```
-rustup component add rustfmt-preview --toolchain nightly
+rustup component add rustfmt --toolchain nightly
```
To run:
```
## Installation
```
-rustup component add rustfmt-preview
+rustup component add rustfmt
```
## Installing from source
read data from stdin. Alternatively, you can use `cargo fmt` to format all
binary and library targets of your crate.
-You can run `rustfmt --help` for information about argument.
+You can run `rustfmt --help` for information about available arguments.
When running with `--check`, Rustfmt will exit with `0` if Rustfmt would not
make any formatting changes to the input, and `1` if Rustfmt would make changes.
```yaml
language: rust
before_script:
-- rustup component add rustfmt-preview
+- rustup component add rustfmt
script:
- cargo fmt --all -- --check
- cargo build