Skip to content

Commit 3062841

Browse files
lopopoloemilio
authored andcommitted
Add rustfmt to nightly toolchain
1 parent 4c379f5 commit 3062841

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ci/script.sh

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ case "$BINDGEN_JOB" in
1414
# Need rustfmt to compare the test expectations.
1515
rustup update nightly
1616
rustup component add rustfmt
17+
rustup component add --toolchain nightly rustfmt
1718
RUSTFMT="$(rustup which rustfmt)"
1819
export RUSTFMT
1920
cargo test "$BINDGEN_PROFILE" --features "$BINDGEN_FEATURES"
@@ -28,6 +29,7 @@ case "$BINDGEN_JOB" in
2829
"nofeatures")
2930
rustup update nightly
3031
rustup component add rustfmt
32+
rustup component add --toolchain nightly rustfmt
3133
RUSTFMT="$(rustup which rustfmt)"
3234
export RUSTFMT
3335
cargo test "$BINDGEN_PROFILE" --no-default-features

0 commit comments

Comments
 (0)