From ab54184c50a798749542a522cd5805fde707878c Mon Sep 17 00:00:00 2001
From: gnzlbg <gonzalobg88@gmail.com>
Date: Mon, 18 Feb 2019 13:50:40 +0100
Subject: [PATCH] Allow installing rustfmt component to fail

---
 .travis.yml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 3547be0c..5a5bbebf 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -23,11 +23,14 @@ matrix:
         - shellcheck ci/*.sh
       stage: tools-and-build-and-tier1
     - name: "Style"
-      install: rustup component add rustfmt-preview
+      install: true
       script:
         - rustc ci/style.rs && ./style src
         # Disabled due to rust-lang/rustfmt#3341
-        # - cargo fmt --all -- --check
+        #- |
+        #  if rustup component add rustfmt-preview ; then
+        #      cargo fmt --all -- --check
+        #  fi
       stage: tools-and-build-and-tier1
 
     # BUILD stable, beta, nightly
-- 
GitLab