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
```yaml
language: rust
before_script:
-- rustup component add rustfmt-preview
+- rustup component add rustfmt
script:
- cargo fmt --all -- --check
- cargo build