promote rustfmt to stable

This commit is contained in:
awiouy 2018-02-21 22:15:32 +01:00
parent 4f3a594229
commit 6f9c829e36

View file

@ -20,7 +20,7 @@ before_script:
- echo '[target.armv7-unknown-linux-gnueabihf]' > ~/.cargo/config - echo '[target.armv7-unknown-linux-gnueabihf]' > ~/.cargo/config
- echo 'linker = "arm-linux-gnueabihf-gcc"' >> ~/.cargo/config - echo 'linker = "arm-linux-gnueabihf-gcc"' >> ~/.cargo/config
- rustup target add armv7-unknown-linux-gnueabihf - rustup target add armv7-unknown-linux-gnueabihf
- if [[ $TRAVIS_RUST_VERSION == *"nightly"* ]]; then - if [[ $TRAVIS_RUST_VERSION == *"stable"* ]]; then
rustup component add rustfmt-preview; rustup component add rustfmt-preview;
cargo fmt --package=librespot-core -- --write-mode=diff; cargo fmt --package=librespot-core -- --write-mode=diff;
fi fi