mirror of
https://github.com/bspeice/qadapt
synced 2024-11-14 01:58:10 -05:00
Handle rustfmt installation better
This commit is contained in:
parent
9e5b2b0f7a
commit
4623b43890
@ -42,7 +42,11 @@ install:
|
||||
- source ~/.cargo/env || true
|
||||
|
||||
script:
|
||||
- rustup component add rustfmt
|
||||
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
|
||||
rustup component add rustfmt-preview
|
||||
else
|
||||
rustup component add rustfmt
|
||||
fi
|
||||
- cargo fmt --all -- --check
|
||||
- |
|
||||
if [ -z "$TRAVIS_TAG" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user