mirror of
https://github.com/lancedb/lancedb.git
synced 2026-05-15 11:00:41 +00:00
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<dyn datafusion_physical_plan::ExecutionPlan>,
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)]`
```
This commit is contained in:
@@ -155,7 +155,9 @@ impl AddDataBuilder {
|
||||
|
||||
pub struct PreprocessingOutput {
|
||||
pub plan: Arc<dyn datafusion_physical_plan::ExecutionPlan>,
|
||||
#[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,
|
||||
|
||||
Reference in New Issue
Block a user