Skip to content

Commit

Permalink
remove derive clone
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Jul 25, 2024
1 parent f2a0e84 commit a47b835
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyo3-arrow/src/chunked.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<ArrayRef>,
field: FieldRef,
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a47b835

Please sign in to comment.