Put rustfmt on PATH so cargo fmt works on Travis

Closes #1143
This commit is contained in:
Brett Cannon 2016-09-03 17:30:02 -07:00 committed by GitHub
parent c9819ceda2
commit 3c7e11e810

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