Skip to content

Commit 6ee3aa7

Browse files
authored
chore: Fix all rustdoc warnings and enforce no warning in CI (#4261)
Signed-off-by: Adam Gutglick <[email protected]>
1 parent 8ce6d9e commit 6ee3aa7

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
- uses: ./.github/actions/setup-rust
134134
- name: Docs
135135
run: |
136-
cargo doc --no-deps
136+
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps
137137
# nextest doesn't support doc tests, so we run it here
138138
cargo test --doc --workspace --all-features --exclude vortex-cxx --exclude vortex-python --exclude vortex-jni --exclude vortex-ffi --exclude xtask --no-fail-fast
139139

vortex-datafusion/src/persistent/source.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ use super::metrics::PARTITION_LABEL;
3434
use super::opener::VortexOpener;
3535
use crate::convert::exprs::can_be_pushed_down;
3636

37-
/// A config for [`VortexFileOpener`]. Used to create [`DataSourceExec`] based physical plans.
37+
/// Execution plan for reading one or more Vortex files, intended to be consumed by [`DataSourceExec`].
3838
///
39-
/// [`DataSourceExec`]: datafusion::datasource::source::DataSourceExec
39+
/// [`DataSourceExec`]: datafusion_datasource::source::DataSourceExec
4040
#[derive(Clone)]
4141
pub struct VortexSource {
4242
pub(crate) file_cache: VortexFileCache,

vortex-file/src/strategy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ impl Default for WriteStrategyBuilder {
3737

3838
impl WriteStrategyBuilder {
3939
/// Create a new empty builder. It can be further configured, and then finally built
40-
/// yielding the [`WriteStrategy`].
40+
/// yielding the [`LayoutStrategy`].
4141
pub const fn new() -> Self {
4242
Self {
4343
executor: None,

vortex-layout/src/layouts/compressed.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ impl<S: LayoutStrategy> CompressingStrategy<S> {
8181
/// This may create smaller files than the BtrBlocks writer, in exchange for some penalty
8282
/// to decoding performance. This is only recommended for datasets that make heavy use of
8383
/// floating point numbers.
84+
///
85+
/// [`CompactCompressor`]: crate::layouts::compact::CompactCompressor
8486
#[cfg(feature = "zstd")]
8587
pub fn new_compact(
8688
child: S,

vortex-scan/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ impl<A: 'static + Send> ScanBuilder<A> {
210210
Ok(split_tasks)
211211
}
212212

213-
/// Returns a [`Stream`] with tasks spawned onto the current Tokio runtime.
213+
/// Returns a [`Stream`](futures::Stream) with tasks spawned onto the current Tokio runtime.
214214
///
215215
/// The stream performs CPU work on the polling thread, with I/O operations dispatched as
216216
/// per the Vortex I/O traits.
@@ -279,6 +279,8 @@ impl ScanBuilder<ArrayRef> {
279279
/// Returns an [`ArrayStream`] with tasks spawned onto the current Tokio runtime.
280280
///
281281
/// See [`ScanBuilder::into_tokio_stream`] for more details.
282+
///
283+
/// [`ArrayStream`]: vortex_array::stream::ArrayStreamAdapter
282284
#[cfg(feature = "tokio")]
283285
pub fn into_tokio_array_stream(
284286
self,

0 commit comments

Comments
 (0)