File tree 2 files changed +4
-10
lines changed
2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 3
3
set -xeu
4
4
cd " $( dirname " $0 " ) /.."
5
5
6
- # Ensure we have the most up-to-date `rustfmt`.
7
- cargo install -f rustfmt
6
+ rustup update nightly
7
+ rustup component add rustfmt --toolchain nightly
8
8
9
9
# Run `rustfmt` on the crate! If `rustfmt` can't make a long line shorter, it
10
10
# prints an error and exits non-zero, so tell it to kindly shut its yapper and
11
11
# make sure it doesn't cause us to exit this whole script non-zero.
12
- cargo fmt --quiet || true
13
-
14
- # Exit non-zero if this resulted in any diffs.
15
- ./ci/assert-no-diff.sh
16
-
12
+ rustup run nightly cargo fmt --check
Original file line number Diff line number Diff line change @@ -33,9 +33,7 @@ case "$BINDGEN_JOB" in
33
33
./ci/assert-docs.sh
34
34
./ci/test-book.sh
35
35
./ci/no-includes.sh
36
- # `rustfmt` isn't reaching a fixed point on bindgen
37
- # code... https://github.com/rust-lang/rustfmt/issues/1376
38
- # ./ci/assert-rustfmt.sh
36
+ ./ci/assert-rustfmt.sh
39
37
;;
40
38
41
39
" quickchecking" )
You can’t perform that action at this time.
0 commit comments