diff options
| -rwxr-xr-x | ci/ci-rust-script.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ci/ci-rust-script.sh b/ci/ci-rust-script.sh index ba4f93e131..90042307ce 100755 --- a/ci/ci-rust-script.sh +++ b/ci/ci-rust-script.sh @@ -24,9 +24,12 @@ if [ "${RUST_TOOLCHAIN_CHANNEL}" != "nightly" ]; then fi if [ "${RUST_TOOLCHAIN_CHANNEL}" = "nightly" ]; then - rustup component add rustfmt-preview; - rustfmt --version; - cargo fmt -- --check --unstable-features; + if rustup component add rustfmt-preview; then + rustfmt --version; + cargo fmt -- --check --unstable-features; + else + echo "There seems to not be any rustfmt for the current nighly. Skipping formatting check!" + fi fi if ! git diff-index --quiet HEAD; then |
