Skip to content

Commit 1f35b03

Browse files
authored
Sync rust docs params for CI and dev (#11890)
Since a4ac082 commit there was a discrepancy between rust.yml GitHub workflow and the `dev/rust_lint.sh` script behavior. Sync the behaviors. Reuse common script to prevent future discrepancies.
1 parent 2521043 commit 1f35b03

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,7 @@ jobs:
233233
with:
234234
rust-version: stable
235235
- name: Run cargo doc
236-
run: |
237-
export RUSTDOCFLAGS="-D warnings"
238-
cargo doc --document-private-items --no-deps --workspace
239-
cd datafusion-cli
240-
cargo doc --document-private-items --no-deps
236+
run: ci/scripts/rust_docs.sh
241237

242238
linux-wasm-pack:
243239
name: build with wasm-pack

ci/scripts/rust_docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# under the License.
1919

2020
set -ex
21-
export RUSTDOCFLAGS="-D warnings -A rustdoc::private-intra-doc-links"
21+
export RUSTDOCFLAGS="-D warnings"
2222
cargo doc --document-private-items --no-deps --workspace
2323
cd datafusion-cli
2424
cargo doc --document-private-items --no-deps

0 commit comments

Comments
 (0)