Merge pull request #1147 from brettcannon/patch-1

Put rustfmt on PATH so `cargo fmt` works on Travis
This commit is contained in:
Nick Cameron 2016-09-05 16:05:58 +12:00 committed by GitHub
commit df173c2885

View File

@ -127,6 +127,7 @@ cache: cargo
before_script: (cargo install rustfmt || true)
script:
- |
export PATH=$PATH:~/.cargo/bin &&
cargo fmt -- --write-mode=diff &&
cargo build &&
cargo test