Skip to content

Commit

Permalink
Add rustfmt to nightly toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
lopopolo authored and emilio committed Sep 17, 2019
1 parent 4c379f5 commit 3062841
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci/script.sh
Expand Up @@ -14,6 +14,7 @@ case "$BINDGEN_JOB" in
# Need rustfmt to compare the test expectations.
rustup update nightly
rustup component add rustfmt
rustup component add --toolchain nightly rustfmt
RUSTFMT="$(rustup which rustfmt)"
export RUSTFMT
cargo test "$BINDGEN_PROFILE" --features "$BINDGEN_FEATURES"
Expand All @@ -28,6 +29,7 @@ case "$BINDGEN_JOB" in
"nofeatures")
rustup update nightly
rustup component add rustfmt
rustup component add --toolchain nightly rustfmt
RUSTFMT="$(rustup which rustfmt)"
export RUSTFMT
cargo test "$BINDGEN_PROFILE" --no-default-features
Expand Down

0 comments on commit 3062841

Please sign in to comment.