mirror of
https://github.com/bspeice/qadapt
synced 2025-07-01 05:46:16 -04:00
Handle rustfmt installation better
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user