mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-17 17:35:16 +01:00
Using cargo-update to update the rustfmt on travis
This commit is contained in:
parent
701b8f209b
commit
15a3ca0c80
1 changed files with 6 additions and 2 deletions
|
@ -78,12 +78,16 @@ matrix:
|
||||||
- os: linux
|
- os: linux
|
||||||
rust: stable
|
rust: stable
|
||||||
# skip the global install step
|
# skip the global install step
|
||||||
install: which rustfmt || cargo install rustfmt
|
install:
|
||||||
|
- which cargo-install-update || cargo install cargo-update
|
||||||
|
- cargo install-update rustfmt
|
||||||
script: cargo fmt -- --write-mode=diff
|
script: cargo fmt -- --write-mode=diff
|
||||||
- os: linux
|
- os: linux
|
||||||
rust: nightly
|
rust: nightly
|
||||||
# skip the global install step
|
# skip the global install step
|
||||||
install: which rustfmt || cargo install rustfmt-nightly
|
install:
|
||||||
|
- which cargo-install-update || cargo install cargo-update
|
||||||
|
- cargo install-update rustfmt-nightly
|
||||||
script: cargo fmt -- --write-mode=diff
|
script: cargo fmt -- --write-mode=diff
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
|
|
Loading…
Reference in a new issue