diff options
author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-10-30 15:12:18 +0900 |
---|---|---|
committer | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-10-30 15:12:18 +0900 |
commit | 86411e4a4e9f43ddffa52e654e945a5dd1cc112b (patch) | |
tree | 8d3cdd58205d3ac62314a4e36f4db4eaa6b80650 /ci | |
parent | cf18ae791e4edb6b926af92c510d411461b7dc12 (diff) | |
download | rust-libc-86411e4a4e9f43ddffa52e654e945a5dd1cc112b.tar.gz |
Use the most recent nightly-rustfmt
Diffstat (limited to 'ci')
-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. |