diff options
Diffstat (limited to 'ci/style.sh')
-rw-r--r-- | ci/style.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ci/style.sh b/ci/style.sh index 6dc9f1333c..923e675b86 100644 --- a/ci/style.sh +++ b/ci/style.sh @@ -4,11 +4,11 @@ set -ex rustc ci/style.rs && ./style src -if rustup component add rustfmt-preview ; then - command -v rustfmt - rustfmt -V - cargo fmt --all -- --check -fi +rustup toolchain install nightly -c rustfmt --allow-downgrade +rustup override set nightly +command -v rustfmt +rustfmt -V +cargo fmt --all -- --check if shellcheck --version ; then # GHA's shellcheck is too old (0.4.6) and cannot handle SC2153 correctly. |