From e2b8a3cce231cf3215c7285582181f671c78e82f Mon Sep 17 00:00:00 2001 From: doxterpepper Date: Sat, 2 Dec 2017 17:12:17 -0500 Subject: [PATCH] The -i flag allows a package to be installed without updating. It seems cargo-update is checking only for installed packages to be updated. Since rustfmt is not installed initially in the travis build then it does not need updating and so nothing happens. The -i flag fixes that by telling cargo-update to install the package. --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ab5e8bb..89e505c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -80,14 +80,14 @@ matrix: # skip the global install step install: - which cargo-install-update || cargo install cargo-update - - cargo install-update rustfmt + - cargo install-update -i rustfmt script: cargo fmt -- --write-mode=diff - os: linux rust: nightly # skip the global install step install: - which cargo-install-update || cargo install cargo-update - - cargo install-update rustfmt-nightly + - cargo install-update -i rustfmt-nightly script: cargo fmt -- --write-mode=diff addons: