Skip to content

Apache DataFusion SQL Query Engine

ARROW-5044: [Release][Rust] Use stable toolchain for format check in verification script

Kouhei Sutou19f0d603cf76
diff --git a/dev/release/verify-release-candidate.sh b/dev/release/verify-release-candidate.sh
index b21dd96c20..faa252849f 100755
--- a/dev/release/verify-release-candidate.sh
+++ b/dev/release/verify-release-candidate.sh
@@ -320,14 +320,14 @@ test_rust() {
# build and test rust
pushd rust
+ # raises on any formatting errors
+ rustup component add rustfmt --toolchain stable
+ cargo +stable fmt --all -- --check
+
# we are targeting Rust nightly for releases
rustup default nightly
- # raises on any formatting errors
- rustup component add rustfmt-preview
- cargo fmt --all -- --check
# raises on any warnings
-
RUSTFLAGS="-D warnings" cargo build
cargo test