From a47b835110153b54707183c1179456e8eb5e2a2e Mon Sep 17 00:00:00 2001 From: Kyle Barron Date: Thu, 25 Jul 2024 17:04:13 -0400 Subject: [PATCH] remove derive clone --- pyo3-arrow/src/chunked.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyo3-arrow/src/chunked.rs b/pyo3-arrow/src/chunked.rs index f3319be..1fba875 100644 --- a/pyo3-arrow/src/chunked.rs +++ b/pyo3-arrow/src/chunked.rs @@ -22,7 +22,6 @@ use crate::{PyArray, PyDataType}; /// /// This is a wrapper around a [FieldRef] and a `Vec` of [ArrayRef]. #[pyclass(module = "arro3.core._rust", name = "ChunkedArray", subclass)] -#[derive(Clone)] pub struct PyChunkedArray { chunks: Vec, field: FieldRef, @@ -97,7 +96,7 @@ impl PyChunkedArray { .zip(self.chunks()) .all(|(length, arr)| *length == arr.len()); if matches_existing_chunking { - return Ok(self.clone()); + return Ok(Self::new(self.chunks.clone(), self.field.clone())); } let mut offset = 0;