Use the most recent nightly-rustfmt
This commit is contained in:
parent
cf18ae791e
commit
86411e4a4e
10
ci/style.sh
10
ci/style.sh
|
@ -4,11 +4,11 @@ set -ex
|
||||||
|
|
||||||
rustc ci/style.rs && ./style src
|
rustc ci/style.rs && ./style src
|
||||||
|
|
||||||
if rustup component add rustfmt-preview ; then
|
rustup toolchain install nightly -c rustfmt --allow-downgrade
|
||||||
command -v rustfmt
|
rustup override set nightly
|
||||||
rustfmt -V
|
command -v rustfmt
|
||||||
cargo fmt --all -- --check
|
rustfmt -V
|
||||||
fi
|
cargo fmt --all -- --check
|
||||||
|
|
||||||
if shellcheck --version ; then
|
if shellcheck --version ; then
|
||||||
# GHA's shellcheck is too old (0.4.6) and cannot handle SC2153 correctly.
|
# GHA's shellcheck is too old (0.4.6) and cannot handle SC2153 correctly.
|
||||||
|
|
Loading…
Reference in New Issue