Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions vortex-vector/src/binaryview/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,7 @@ impl<T: BinaryViewType> VectorOps for BinaryViewVector<T> {
&self.validity
}

fn try_into_mut(self) -> Result<BinaryViewVectorMut<T>, Self>
where
Self: Sized,
{
fn try_into_mut(self) -> Result<BinaryViewVectorMut<T>, Self> {
let views_mut = match self.views.try_into_mut() {
Ok(views_mut) => views_mut,
Err(views) => {
Expand Down
5 changes: 1 addition & 4 deletions vortex-vector/src/bool/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,7 @@ impl VectorOps for BoolVector {
&self.validity
}

fn try_into_mut(self) -> Result<BoolVectorMut, Self>
where
Self: Sized,
{
fn try_into_mut(self) -> Result<BoolVectorMut, Self> {
let bits = match self.bits.try_into_mut() {
Ok(bits) => bits,
Err(bits) => {
Expand Down
5 changes: 1 addition & 4 deletions vortex-vector/src/decimal/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,7 @@ impl<D: NativeDecimalType> VectorOps for DVector<D> {
&self.validity
}

fn try_into_mut(self) -> Result<DVectorMut<D>, Self>
where
Self: Sized,
{
fn try_into_mut(self) -> Result<DVectorMut<D>, Self> {
let elements = match self.elements.try_into_mut() {
Ok(elements) => elements,
Err(elements) => {
Expand Down
5 changes: 1 addition & 4 deletions vortex-vector/src/decimal/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ impl VectorOps for DecimalVector {
match_each_dvector!(self, |v| { v.validity() })
}

fn try_into_mut(self) -> Result<DecimalVectorMut, Self>
where
Self: Sized,
{
fn try_into_mut(self) -> Result<DecimalVectorMut, Self> {
match_each_dvector!(self, |v| {
v.try_into_mut()
.map(DecimalVectorMut::from)
Expand Down
5 changes: 1 addition & 4 deletions vortex-vector/src/fixed_size_list/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,7 @@ impl VectorOps for FixedSizeListVector {
&self.validity
}

fn try_into_mut(self) -> Result<FixedSizeListVectorMut, Self>
where
Self: Sized,
{
fn try_into_mut(self) -> Result<FixedSizeListVectorMut, Self> {
let len = self.len;
let list_size = self.list_size;

Expand Down
5 changes: 1 addition & 4 deletions vortex-vector/src/null/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ impl VectorOps for NullVector {
&self.validity
}

fn try_into_mut(self) -> Result<NullVectorMut, Self>
where
Self: Sized,
{
fn try_into_mut(self) -> Result<NullVectorMut, Self> {
Ok(NullVectorMut::new(self.len))
}
}
5 changes: 1 addition & 4 deletions vortex-vector/src/primitive/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ impl VectorOps for PrimitiveVector {
match_each_pvector!(self, |v| { v.validity() })
}

fn try_into_mut(self) -> Result<PrimitiveVectorMut, Self>
where
Self: Sized,
{
fn try_into_mut(self) -> Result<PrimitiveVectorMut, Self> {
match_each_pvector!(self, |v| {
v.try_into_mut()
.map(PrimitiveVectorMut::from)
Expand Down
5 changes: 1 addition & 4 deletions vortex-vector/src/struct_/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,7 @@ impl VectorOps for StructVector {
&self.validity
}

fn try_into_mut(self) -> Result<StructVectorMut, Self>
where
Self: Sized,
{
fn try_into_mut(self) -> Result<StructVectorMut, Self> {
let len = self.len;

let fields = match Arc::try_unwrap(self.fields) {
Expand Down
5 changes: 1 addition & 4 deletions vortex-vector/src/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,7 @@ impl VectorOps for Vector {
match_each_vector!(self, |v| { v.validity() })
}

fn try_into_mut(self) -> Result<VectorMut, Self>
where
Self: Sized,
{
fn try_into_mut(self) -> Result<VectorMut, Self> {
match_each_vector!(self, |v| {
v.try_into_mut().map(VectorMut::from).map_err(Vector::from)
})
Expand Down
Loading