@@ -42,7 +42,7 @@ use crate::BitPacked;
4242use crate :: BitPackedArray ;
4343use crate :: BitPackedArrayExt ;
4444use crate :: BitPackedData ;
45- use crate :: BitWidths ;
45+ use crate :: BitWidthsView ;
4646use crate :: bitpack_compress:: bitpack_encode_blocked;
4747use crate :: bitpack_compress:: bitpack_to_best_bit_widths;
4848
@@ -270,7 +270,7 @@ fn v2_roundtrip(
270270 Some ( bit_widths) => bitpack_encode_blocked ( & values, & bit_widths, None , & mut ctx) ?,
271271 None => bitpack_to_best_bit_widths ( & values, & mut ctx) ?,
272272 } ;
273- let BitWidths :: Blocked ( block_offsets) = array. bit_widths ( ) else {
273+ let BitWidthsView :: Blocked ( block_offsets) = array. bit_widths ( ) else {
274274 vortex_bail ! ( "expected block offsets" ) ;
275275 } ;
276276 let serialization = PLUGIN_SESSION
@@ -297,7 +297,7 @@ fn v2_roundtrip_offset_and_nonzero_base() -> VortexResult<()> {
297297 let mut ctx = PLUGIN_SESSION . create_execution_ctx ( ) ;
298298 let values = drifting ( ) ;
299299 let encoded = bitpack_to_best_bit_widths ( & values, & mut ctx) ?;
300- let BitWidths :: Blocked ( block_offsets) = encoded. bit_widths ( ) else {
300+ let BitWidthsView :: Blocked ( block_offsets) = encoded. bit_widths ( ) else {
301301 vortex_bail ! ( "expected block offsets" ) ;
302302 } ;
303303 let block_offsets = block_offsets
@@ -335,7 +335,7 @@ fn v2_roundtrip_offset_and_nonzero_base() -> VortexResult<()> {
335335fn v2_rejects_malformed_parts ( ) -> VortexResult < ( ) > {
336336 let array =
337337 bitpack_to_best_bit_widths ( & drifting ( ) , & mut PLUGIN_SESSION . create_execution_ctx ( ) ) ?;
338- let BitWidths :: Blocked ( block_offsets) = array. bit_widths ( ) else {
338+ let BitWidthsView :: Blocked ( block_offsets) = array. bit_widths ( ) else {
339339 vortex_bail ! ( "expected block offsets" ) ;
340340 } ;
341341 let metadata = BitPackedV2Metadata {
@@ -358,14 +358,14 @@ fn v2_rejects_malformed_parts() -> VortexResult<()> {
358358 )
359359 } ;
360360
361- assert ! ( deserialize( & metadata, std:: slice:: from_ref( & block_offsets) ) . is_ok( ) ) ;
361+ assert ! ( deserialize( & metadata, std:: slice:: from_ref( block_offsets) ) . is_ok( ) ) ;
362362 assert ! ( deserialize( & metadata, & [ ] ) . is_err( ) ) ;
363363 let offset_past_block = BitPackedV2Metadata {
364364 offset : 1024 ,
365365 block_offsets_ptype : metadata. block_offsets_ptype ,
366366 patches : None ,
367367 } ;
368- assert ! ( deserialize( & offset_past_block, std:: slice:: from_ref( & block_offsets) ) . is_err( ) ) ;
368+ assert ! ( deserialize( & offset_past_block, std:: slice:: from_ref( block_offsets) ) . is_err( ) ) ;
369369 let signed = BitPackedV2Metadata {
370370 offset : 0 ,
371371 block_offsets_ptype : PType :: I32 as i32 ,
0 commit comments