瀏覽代碼

travis: self update rustup before installing rustfmt

Mokhtar Naamani 5 年之前
父節點
當前提交
9e04705243
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      .travis.yml

+ 4 - 0
.travis.yml

@@ -3,10 +3,14 @@ language: rust
 rust:
   - 1.40.0
 # Caching saves a lot of time but often causes stalled builds...
+# disabled for now
+# look into solution here: https://levans.fr/rust_travis_cache.html
 # cache:
 #  - cargo
 
 before_script:
+  # Do a self update before installing rustfmt - https://github.com/rust-lang/rustfmt/issues/3271
+  - rustup self update
   - rustup component add rustfmt
   - ./setup.sh