File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -128,16 +128,14 @@ when a pull request contains unformatted code. Using `--write-mode=diff` instruc
128
128
rustfmt to exit with an error code if the input is not formatted correctly.
129
129
It will also print any found differences.
130
130
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) :
132
132
133
133
``` yaml
134
134
language : rust
135
135
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
139
137
script :
140
- - cargo +nightly fmt --all -- --write-mode=diff
138
+ - cargo fmt --all -- --write-mode=diff
141
139
- cargo build
142
140
- cargo test
143
141
` ` `
You can’t perform that action at this time.
0 commit comments