From b31491dfbcb91b05b28db03773e79e7071ea8454 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Sat, 8 Dec 2018 19:27:03 -0500 Subject: [PATCH] Run as a script block --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 60b9857..2b6b22b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,7 +40,8 @@ before_install: install: - source ~/.cargo/env || true - - if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then + - | + if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then rustup component add rustfmt-preview else rustup component add rustfmt