about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAleksey Kladov <aleksey.kladov@gmail.com>2018-02-17 10:47:54 +0300
committerAleksey Kladov <aleksey.kladov@gmail.com>2018-02-17 10:47:54 +0300
commitbcd6765285ea8314153bc885d4ab3df5cee659a9 (patch)
treee2d968596049508e7f33d2c95abffed79489cdf7
parent2bee88870fde12dcbf6209e436bf6c3ca4159444 (diff)
Simplify CI exaple in the readme
rustfmt-preview is now in stable
-rw-r--r--README.md8
1 files changed, 3 insertions, 5 deletions
diff --git a/README.md b/README.md
index 69f4d800dfc..5e4e1da9204 100644
--- a/README.md
+++ b/README.md
@@ -128,16 +128,14 @@ when a pull request contains unformatted code. Using `--write-mode=diff` instruc
 rustfmt to exit with an error code if the input is not formatted correctly.
 It will also print any found differences.
 
-A minimal Travis setup could look like this:
+A minimal Travis setup could look like this (requires Rust 1.24.0 or greater):
 
 ```yaml
 language: rust
 before_script:
-- rustup toolchain install nightly
-- rustup component add --toolchain nightly rustfmt-preview
-- which rustfmt || cargo install --force rustfmt-nightly
+- rustup component add rustfmt-preview
 script:
-- cargo +nightly fmt --all -- --write-mode=diff
+- cargo fmt --all -- --write-mode=diff
 - cargo build
 - cargo test
 ```