From 567fddf37242ba76c18d6b4a41ee1f4c9f58b482 Mon Sep 17 00:00:00 2001 From: Joe Isaacs Date: Thu, 19 Dec 2024 15:34:59 +0000 Subject: [PATCH] remove static from NativePType --- vortex-array/src/array/varbin/compute/filter.rs | 4 ++-- vortex-array/src/builders/primitive.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vortex-array/src/array/varbin/compute/filter.rs b/vortex-array/src/array/varbin/compute/filter.rs index fd009233b..21d646446 100644 --- a/vortex-array/src/array/varbin/compute/filter.rs +++ b/vortex-array/src/array/varbin/compute/filter.rs @@ -54,7 +54,7 @@ fn filter_select_var_bin_by_slice_primitive_offset( selection_count: usize, ) -> VortexResult where - O: NativePType + PrimInt + 'static + Zero, + O: NativePType + PrimInt + Zero, usize: AsPrimitive, { let logical_validity = validity.to_logical(offsets.len() - 1); @@ -107,7 +107,7 @@ fn update_non_nullable_slice( start: usize, end: usize, ) where - O: NativePType + PrimInt + 'static + Zero + Copy, + O: NativePType + PrimInt + Zero + Copy, usize: AsPrimitive, { let new_data = { diff --git a/vortex-array/src/builders/primitive.rs b/vortex-array/src/builders/primitive.rs index 5ef9ad5ce..d51036dfb 100644 --- a/vortex-array/src/builders/primitive.rs +++ b/vortex-array/src/builders/primitive.rs @@ -16,7 +16,7 @@ pub struct PrimitiveBuilder { dtype: DType, } -impl PrimitiveBuilder { +impl PrimitiveBuilder { pub fn new(nullability: Nullability) -> Self { Self::with_capacity(nullability, 1024) // Same as Arrow builders } @@ -45,7 +45,7 @@ impl PrimitiveBuilder { } } -impl ArrayBuilder for PrimitiveBuilder { +impl ArrayBuilder for PrimitiveBuilder { fn as_any(&self) -> &dyn Any { self }