Skip to content

Commit fcca5cc

Browse files
authored
Merge pull request rust-lang#896 from integer32llc/selective-rustfmt-install
Only install rustfmt when we need it
2 parents cf66c10 + 81504cc commit fcca5cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ install:
1515
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
1616
- npm install
1717
- cargo install --force diesel_cli --vers 0.14.0 --debug --no-default-features --features postgres && export PATH=$HOME/.cargo/bin:$PATH
18-
- cargo install --force rustfmt
19-
- rustfmt --version
2018

2119
before_script:
2220
- diesel database setup
@@ -40,6 +38,8 @@ matrix:
4038
- rust: stable
4139
env: RUSTFMT=YESPLEASE
4240
script:
41+
- cargo install --force rustfmt
42+
- rustfmt --version
4343
- cargo fmt -- --write-mode=diff
4444
- rust: stable
4545
script:

0 commit comments

Comments
 (0)