From 2be07069fc66b00f5c00ca2c5ce32f241d81b8ee Mon Sep 17 00:00:00 2001 From: Steven Van Ingelgem Date: Tue, 12 Sep 2023 07:46:48 +0200 Subject: [PATCH] Resolved copy-errors. --- crates/polars-pipe/src/pipeline/convert.rs | 2 +- crates/polars-plan/src/logical_plan/options.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/polars-pipe/src/pipeline/convert.rs b/crates/polars-pipe/src/pipeline/convert.rs index 2b451690b4fc..22c4d25711e0 100644 --- a/crates/polars-pipe/src/pipeline/convert.rs +++ b/crates/polars-pipe/src/pipeline/convert.rs @@ -185,7 +185,7 @@ where FileType::Csv(csv_options) => Box::new(CsvCloudSink::new( uri, cloud_options.as_ref(), - *csv_options, + csv_options.clone(), input_schema.as_ref(), )?) as Box, diff --git a/crates/polars-plan/src/logical_plan/options.rs b/crates/polars-plan/src/logical_plan/options.rs index 025bf4d64aa5..96489db7bd85 100644 --- a/crates/polars-plan/src/logical_plan/options.rs +++ b/crates/polars-plan/src/logical_plan/options.rs @@ -76,7 +76,7 @@ pub struct IpcWriterOptions { } #[cfg(feature = "csv")] -#[derive(Copy, Clone, Debug, PartialEq, Eq, Default)] +#[derive(Clone, Debug, PartialEq, Eq, Default)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct CsvWriteOptions { pub has_header: bool,