Skip to content

Commit 1777c2f

Browse files
Remove static from NativePType (#1731)
1 parent cb3e7b0 commit 1777c2f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

vortex-array/src/array/varbin/compute/filter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ fn filter_select_var_bin_by_slice_primitive_offset<O>(
5454
selection_count: usize,
5555
) -> VortexResult<VarBinArray>
5656
where
57-
O: NativePType + PrimInt + 'static + Zero,
57+
O: NativePType + PrimInt + Zero,
5858
usize: AsPrimitive<O>,
5959
{
6060
let logical_validity = validity.to_logical(offsets.len() - 1);
@@ -107,7 +107,7 @@ fn update_non_nullable_slice<O>(
107107
start: usize,
108108
end: usize,
109109
) where
110-
O: NativePType + PrimInt + 'static + Zero + Copy,
110+
O: NativePType + PrimInt + Zero + Copy,
111111
usize: AsPrimitive<O>,
112112
{
113113
let new_data = {

vortex-array/src/builders/primitive.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub struct PrimitiveBuilder<T: NativePType> {
1616
dtype: DType,
1717
}
1818

19-
impl<T: NativePType + 'static> PrimitiveBuilder<T> {
19+
impl<T: NativePType> PrimitiveBuilder<T> {
2020
pub fn new(nullability: Nullability) -> Self {
2121
Self::with_capacity(nullability, 1024) // Same as Arrow builders
2222
}
@@ -45,7 +45,7 @@ impl<T: NativePType + 'static> PrimitiveBuilder<T> {
4545
}
4646
}
4747

48-
impl<T: NativePType + 'static> ArrayBuilder for PrimitiveBuilder<T> {
48+
impl<T: NativePType> ArrayBuilder for PrimitiveBuilder<T> {
4949
fn as_any(&self) -> &dyn Any {
5050
self
5151
}

0 commit comments

Comments
 (0)