Skip to content

Commit

Permalink
Remove static from NativePType (#1731)
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-isaacs authored Dec 20, 2024
1 parent cb3e7b0 commit 1777c2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions vortex-array/src/array/varbin/compute/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ fn filter_select_var_bin_by_slice_primitive_offset<O>(
selection_count: usize,
) -> VortexResult<VarBinArray>
where
O: NativePType + PrimInt + 'static + Zero,
O: NativePType + PrimInt + Zero,
usize: AsPrimitive<O>,
{
let logical_validity = validity.to_logical(offsets.len() - 1);
Expand Down Expand Up @@ -107,7 +107,7 @@ fn update_non_nullable_slice<O>(
start: usize,
end: usize,
) where
O: NativePType + PrimInt + 'static + Zero + Copy,
O: NativePType + PrimInt + Zero + Copy,
usize: AsPrimitive<O>,
{
let new_data = {
Expand Down
4 changes: 2 additions & 2 deletions vortex-array/src/builders/primitive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub struct PrimitiveBuilder<T: NativePType> {
dtype: DType,
}

impl<T: NativePType + 'static> PrimitiveBuilder<T> {
impl<T: NativePType> PrimitiveBuilder<T> {
pub fn new(nullability: Nullability) -> Self {
Self::with_capacity(nullability, 1024) // Same as Arrow builders
}
Expand Down Expand Up @@ -45,7 +45,7 @@ impl<T: NativePType + 'static> PrimitiveBuilder<T> {
}
}

impl<T: NativePType + 'static> ArrayBuilder for PrimitiveBuilder<T> {
impl<T: NativePType> ArrayBuilder for PrimitiveBuilder<T> {
fn as_any(&self) -> &dyn Any {
self
}
Expand Down

0 comments on commit 1777c2f

Please sign in to comment.