Skip to content

Commit 95bff3c

Browse files
committed
Update type constraints
1 parent bf2ec21 commit 95bff3c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

arrow-buffer/src/buffer/offset.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
use crate::buffer::ScalarBuffer;
1919
use crate::{ArrowNativeType, MutableBuffer, OffsetBufferBuilder};
20-
use std::ops::{Add, Deref, Sub};
20+
use std::ops::Deref;
2121

2222
/// A non-empty buffer of monotonically increasing, positive integers.
2323
///
@@ -173,9 +173,7 @@ impl<T: ArrowNativeType> AsRef<[T]> for OffsetBuffer<T> {
173173
}
174174
}
175175

176-
impl<O: ArrowNativeType + Add<Output = O> + Sub<Output = O>> From<OffsetBufferBuilder<O>>
177-
for OffsetBuffer<O>
178-
{
176+
impl<O: ArrowNativeType> From<OffsetBufferBuilder<O>> for OffsetBuffer<O> {
179177
fn from(value: OffsetBufferBuilder<O>) -> Self {
180178
value.finish()
181179
}

0 commit comments

Comments
 (0)