From 154dbeee2a30b38c137ff6c03db544e98e4de859 Mon Sep 17 00:00:00 2001 From: Jack Ye Date: Wed, 25 Feb 2026 14:59:32 -0800 Subject: [PATCH] chore: fix clippy for PreprocessingOutput without remote feature (#3070) Fix clippy: ``` error: fields `overwrite` and `rescannable` are never read Error: --> /home/runner/work/xxxx/xxxx/src/lancedb/rust/lancedb/src/table/add_data.rs:158:9 | 156 | pub struct PreprocessingOutput { | ------------------- fields in this struct 157 | pub plan: Arc, 158 | pub overwrite: bool, | ^^^^^^^^^ 159 | pub rescannable: bool, | ^^^^^^^^^^^ | = note: `-D dead-code` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(dead_code)]` ``` --- rust/lancedb/src/table/add_data.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rust/lancedb/src/table/add_data.rs b/rust/lancedb/src/table/add_data.rs index ea5f111c2..5c83a8154 100644 --- a/rust/lancedb/src/table/add_data.rs +++ b/rust/lancedb/src/table/add_data.rs @@ -155,7 +155,9 @@ impl AddDataBuilder { pub struct PreprocessingOutput { pub plan: Arc, + #[cfg_attr(not(feature = "remote"), allow(dead_code))] pub overwrite: bool, + #[cfg_attr(not(feature = "remote"), allow(dead_code))] pub rescannable: bool, pub write_options: WriteOptions, pub mode: AddDataMode,