Skip to content

Commit bcd6765

Browse files
committed
Simplify CI exaple in the readme
rustfmt-preview is now in stable
1 parent 2bee888 commit bcd6765

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -128,16 +128,14 @@ when a pull request contains unformatted code. Using `--write-mode=diff` instruc
128128
rustfmt to exit with an error code if the input is not formatted correctly.
129129
It will also print any found differences.
130130

131-
A minimal Travis setup could look like this:
131+
A minimal Travis setup could look like this (requires Rust 1.24.0 or greater):
132132

133133
```yaml
134134
language: rust
135135
before_script:
136-
- rustup toolchain install nightly
137-
- rustup component add --toolchain nightly rustfmt-preview
138-
- which rustfmt || cargo install --force rustfmt-nightly
136+
- rustup component add rustfmt-preview
139137
script:
140-
- cargo +nightly fmt --all -- --write-mode=diff
138+
- cargo fmt --all -- --write-mode=diff
141139
- cargo build
142140
- cargo test
143141
```

0 commit comments

Comments
 (0)