diff --git a/arrow-buffer/src/buffer/offset.rs b/arrow-buffer/src/buffer/offset.rs index d7f66e3a6aff..e9087d30098c 100644 --- a/arrow-buffer/src/buffer/offset.rs +++ b/arrow-buffer/src/buffer/offset.rs @@ -17,7 +17,7 @@ use crate::buffer::ScalarBuffer; use crate::{ArrowNativeType, MutableBuffer, OffsetBufferBuilder}; -use std::ops::{Add, Deref, Sub}; +use std::ops::Deref; /// A non-empty buffer of monotonically increasing, positive integers. /// @@ -173,9 +173,7 @@ impl AsRef<[T]> for OffsetBuffer { } } -impl + Sub> From> - for OffsetBuffer -{ +impl From> for OffsetBuffer { fn from(value: OffsetBufferBuilder) -> Self { value.finish() }