Skip to content

Commit

Permalink
Update type constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
tustvold committed Mar 20, 2024
1 parent bf2ec21 commit 95bff3c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions arrow-buffer/src/buffer/offset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down Expand Up @@ -173,9 +173,7 @@ impl<T: ArrowNativeType> AsRef<[T]> for OffsetBuffer<T> {
}
}

impl<O: ArrowNativeType + Add<Output = O> + Sub<Output = O>> From<OffsetBufferBuilder<O>>
for OffsetBuffer<O>
{
impl<O: ArrowNativeType> From<OffsetBufferBuilder<O>> for OffsetBuffer<O> {
fn from(value: OffsetBufferBuilder<O>) -> Self {
value.finish()
}
Expand Down

0 comments on commit 95bff3c

Please sign in to comment.