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,