@@ -53,14 +53,14 @@ pub struct MaterializedPlan {
5353/// Checks whether the encoding of an array can be fused into a dynamic-dispatch plan.
5454fn is_dyn_dispatch_compatible ( array : & ArrayRef ) -> bool {
5555 let id = array. encoding_id ( ) ;
56- if id == ALP :: ID {
56+ if * id == ALP :: ID {
5757 let arr = array. as_ :: < ALP > ( ) ;
5858 return arr. patches ( ) . is_none ( ) && arr. dtype ( ) . as_ptype ( ) == PType :: F32 ;
5959 }
60- if id == BitPacked :: ID {
60+ if * id == BitPacked :: ID {
6161 return array. as_ :: < BitPacked > ( ) . patches ( ) . is_none ( ) ;
6262 }
63- if id == Dict :: ID {
63+ if * id == Dict :: ID {
6464 let arr = array. as_ :: < Dict > ( ) ;
6565 // As of now the dict dyn dispatch kernel requires
6666 // codes and values to have the same byte width.
@@ -72,7 +72,7 @@ fn is_dyn_dispatch_compatible(array: &ArrayRef) -> bool {
7272 _ => false ,
7373 } ;
7474 }
75- if id == RunEnd :: ID {
75+ if * id == RunEnd :: ID {
7676 let arr = array. as_ :: < RunEnd > ( ) ;
7777 // As of now the run-end dyn dispatch kernel requires
7878 // ends and values to have the same byte width.
@@ -84,11 +84,11 @@ fn is_dyn_dispatch_compatible(array: &ArrayRef) -> bool {
8484 _ => false ,
8585 } ;
8686 }
87- id == FoR :: ID
88- || id == ZigZag :: ID
89- || id == Primitive :: ID
90- || id == Slice :: ID
91- || id == Sequence :: ID
87+ * id == FoR :: ID
88+ || * id == ZigZag :: ID
89+ || * id == Primitive :: ID
90+ || * id == Slice :: ID
91+ || * id == Sequence :: ID
9292}
9393
9494/// An unmaterialized stage: a source op, scalar ops, and optional source buffer reference.
@@ -361,23 +361,23 @@ impl FusedPlan {
361361
362362 let id = array. encoding_id ( ) ;
363363
364- if id == BitPacked :: ID {
364+ if * id == BitPacked :: ID {
365365 self . walk_bitpacked ( array)
366- } else if id == FoR :: ID {
366+ } else if * id == FoR :: ID {
367367 self . walk_for ( array, pending_subtrees)
368- } else if id == ZigZag :: ID {
368+ } else if * id == ZigZag :: ID {
369369 self . walk_zigzag ( array, pending_subtrees)
370- } else if id == ALP :: ID {
370+ } else if * id == ALP :: ID {
371371 self . walk_alp ( array, pending_subtrees)
372- } else if id == Dict :: ID {
372+ } else if * id == Dict :: ID {
373373 self . walk_dict ( array, pending_subtrees)
374- } else if id == RunEnd :: ID {
374+ } else if * id == RunEnd :: ID {
375375 self . walk_runend ( array, pending_subtrees)
376- } else if id == Primitive :: ID {
376+ } else if * id == Primitive :: ID {
377377 self . walk_primitive ( array)
378- } else if id == Slice :: ID {
378+ } else if * id == Slice :: ID {
379379 self . walk_slice ( array, pending_subtrees)
380- } else if id == Sequence :: ID {
380+ } else if * id == Sequence :: ID {
381381 self . walk_sequence ( array)
382382 } else {
383383 vortex_bail ! (
0 commit comments