File tree 2 files changed +4
-9
lines changed
2 files changed +4
-9
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 @@ -45,8 +45,7 @@ case "$BINDGEN_JOB" in
45
45
./ci/assert-docs.sh
46
46
./ci/test-book.sh
47
47
./ci/no-includes.sh
48
- # `rustfmt` isn't reaching a fixed point on bindgen
49
- # code... https://github.com/rust-lang/rustfmt/issues/1376
48
+ # Disabled because https://github.com/rust-lang/rustfmt/issues/3799.
50
49
# ./ci/assert-rustfmt.sh
51
50
;;
52
51
You can’t perform that action at this time.
0 commit comments