Browse Source

travis: try to reinstall stable toolchain to get cargo-fmt

Mokhtar Naamani 5 năm trước cách đây
mục cha
commit
2c1cb8a21f
1 tập tin đã thay đổi với 2 bổ sung4 xóa
  1. 2 4
      .travis.yml

+ 2 - 4
.travis.yml

@@ -9,10 +9,8 @@ rust:
 #  - 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
+  # https://github.com/rust-lang/rustup/issues/1558#issuecomment-452110409
+  - rustup toolchain remove stable && rustup toolchain install stable
 
 script:
   # Ensure all checked in code is cargo-fmt'ed