Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 91a1d91

Browse files
committed
Cope with missing rustfmt from nightly.
1 parent 19d78da commit 91a1d91

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ matrix:
2222

2323
# Tools:
2424
- name: "rustfmt"
25-
install: rustup component add rustfmt-preview
26-
script: cargo fmt --all -- --check
25+
script: |
26+
if rustup component add rustfmt-preview; then
27+
cargo fmt --all -- --check
28+
fi
2729
- name: "clippy"
2830
script: |
2931
if rustup component add clippy-preview; then

0 commit comments

Comments
 (0)