Skip to content

Commit 86411e4

Browse files
committed
Use the most recent nightly-rustfmt
1 parent cf18ae7 commit 86411e4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ci/style.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ set -ex
44

55
rustc ci/style.rs && ./style src
66

7-
if rustup component add rustfmt-preview ; then
8-
command -v rustfmt
9-
rustfmt -V
10-
cargo fmt --all -- --check
11-
fi
7+
rustup toolchain install nightly -c rustfmt --allow-downgrade
8+
rustup override set nightly
9+
command -v rustfmt
10+
rustfmt -V
11+
cargo fmt --all -- --check
1212

1313
if shellcheck --version ; then
1414
# GHA's shellcheck is too old (0.4.6) and cannot handle SC2153 correctly.

0 commit comments

Comments
 (0)