From 15a3ca0c80ba8af90758135ad4a2c6441a776306 Mon Sep 17 00:00:00 2001 From: Adit Cahya Ramadhan Date: Sat, 21 Oct 2017 10:21:56 +0700 Subject: [PATCH] Using cargo-update to update the rustfmt on travis --- .travis.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0ddc415..b8c7bb5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -78,12 +78,16 @@ matrix: - os: linux rust: stable # skip the global install step - install: which rustfmt || cargo install rustfmt + install: + - which cargo-install-update || cargo install cargo-update + - cargo install-update rustfmt script: cargo fmt -- --write-mode=diff - os: linux rust: nightly # skip the global install step - install: which rustfmt || cargo install rustfmt-nightly + install: + - which cargo-install-update || cargo install cargo-update + - cargo install-update rustfmt-nightly script: cargo fmt -- --write-mode=diff addons: