Skip to content

Commit

Permalink
Use cargo rustc instead
Browse files Browse the repository at this point in the history
Overriding the RUSTFLAGS environment variable can create problems if the cargo
config sets rust flags.
  • Loading branch information
robinst committed Sep 7, 2019
1 parent 2c04129 commit dafa122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -24,7 +24,7 @@ matrix:
cache: cargo

script:
- 'if [[ "$TRAVIS_RUST_VERSION" = 1.32.0 ]]; then RUSTFLAGS="-D warnings" cargo build --verbose; fi'
- 'if [[ "$TRAVIS_RUST_VERSION" = 1.32.0 ]]; then cargo rustc -- -D warnings; fi'
- cargo build --verbose
- cargo test --verbose
- 'if [[ "$TRAVIS_RUST_VERSION" = nightly ]]; then cargo bench; fi'
Expand Down

0 comments on commit dafa122

Please sign in to comment.