diff options
Diffstat (limited to 'scripts/format.bash')
-rwxr-xr-x | scripts/format.bash | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/format.bash b/scripts/format.bash index ad7ee4f..6612810 100755 --- a/scripts/format.bash +++ b/scripts/format.bash @@ -4,7 +4,9 @@ set -e set -u set -o pipefail -rustup update nightly -rustup component add rustfmt --toolchain nightly -cargo +nightly fmt --all -- --check +RUST_VERSION="nightly-2021-01-31" + +rustup update "$RUST_VERSION" +rustup component add rustfmt --toolchain "$RUST_VERSION" +cargo +"$RUST_VERSION" fmt --all -- --check |