From b3b0d88e0d56b99d211e2bf692a81666f7269053 Mon Sep 17 00:00:00 2001 From: Daniel Rammer Date: Fri, 18 Sep 2026 12:25:51 -0500 Subject: [PATCH] docs(knn): drop private intra-doc link that fails rustdoc on main `KNNVectorDistanceExec::with_k` is public but its doc comment linked to the crate-private `try_new_batch`, which `-D warnings` rejects via `rustdoc::private_intra_doc_links`. Refer to the constructor with plain code formatting instead so `cargo doc --workspace --no-deps` passes again. Co-Authored-By: Claude Fable 5.1 --- rust/lance/src/io/exec/knn.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/lance/src/io/exec/knn.rs b/rust/lance/src/io/exec/knn.rs index d2ed1877fc0..e901912cc2d 100644 --- a/rust/lance/src/io/exec/knn.rs +++ b/rust/lance/src/io/exec/knn.rs @@ -560,7 +560,7 @@ impl KNNVectorDistanceExec { /// candidate set has nothing else to move. `k` feeds only the execute-time cut, /// never the schema or plan properties, so the rest of the node carries over. /// - /// Returns an error for a zero `k` on a batch node, matching [`Self::try_new_batch`]. + /// Returns an error for a zero `k` on a batch node, matching `try_new_batch`. pub fn with_k(&self, k: usize) -> Result { if self.is_batch && k == 0 { return Err(Error::invalid_input(