diff --git a/rust/arrow/src/buffer.rs b/rust/arrow/src/buffer.rs index c2a11bea4c2e0..b56dba29a06af 100644 --- a/rust/arrow/src/buffer.rs +++ b/rust/arrow/src/buffer.rs @@ -70,7 +70,7 @@ struct BufferData { impl PartialEq for BufferData { fn eq(&self, other: &BufferData) -> bool { - if self.capacity != other.capacity { + if self.len != other.len { return false; }