@@ -655,15 +655,13 @@ mod tests {
655655 let indices = array. patch_indices ( ) . clone ( ) ;
656656 let values = array. patch_values ( ) . clone ( ) ;
657657
658- // Create new PatchedArray with same children using with_slots_mut
659- let array_ref = array. clone ( ) . into_array ( ) ;
660- let vtable = array_ref. vtable ( ) . clone_boxed ( ) ;
661- let new_array = vtable. with_slots_mut ( array_ref, & mut |slots| {
662- slots[ 0 ] = Some ( inner. clone ( ) ) ;
663- slots[ 1 ] = Some ( lane_offsets. clone ( ) ) ;
664- slots[ 2 ] = Some ( indices. clone ( ) ) ;
665- slots[ 3 ] = Some ( values. clone ( ) ) ;
666- } ) ?;
658+ // Create new PatchedArray with same children using put_slot
659+ let mut new_array = array. clone ( ) . into_array ( ) ;
660+ let vtable = new_array. vtable ( ) . clone_boxed ( ) ;
661+ vtable. put_slot ( & mut new_array, 0 , inner. clone ( ) ) ;
662+ vtable. put_slot ( & mut new_array, 1 , lane_offsets. clone ( ) ) ;
663+ vtable. put_slot ( & mut new_array, 2 , indices. clone ( ) ) ;
664+ vtable. put_slot ( & mut new_array, 3 , values. clone ( ) ) ;
667665
668666 assert ! ( new_array. is:: <Patched >( ) ) ;
669667 assert_eq ! ( array. len( ) , new_array. len( ) ) ;
@@ -692,14 +690,12 @@ mod tests {
692690 let indices = array. patch_indices ( ) . clone ( ) ;
693691 let values = array. patch_values ( ) . clone ( ) ;
694692
695- let array_ref = array. into_array ( ) ;
696- let vtable = array_ref. vtable ( ) . clone_boxed ( ) ;
697- let new_array = vtable. with_slots_mut ( array_ref, & mut |slots| {
698- slots[ 0 ] = Some ( new_inner. clone ( ) ) ;
699- slots[ 1 ] = Some ( lane_offsets. clone ( ) ) ;
700- slots[ 2 ] = Some ( indices. clone ( ) ) ;
701- slots[ 3 ] = Some ( values. clone ( ) ) ;
702- } ) ?;
693+ let mut new_array = array. into_array ( ) ;
694+ let vtable = new_array. vtable ( ) . clone_boxed ( ) ;
695+ vtable. put_slot ( & mut new_array, 0 , new_inner. clone ( ) ) ;
696+ vtable. put_slot ( & mut new_array, 1 , lane_offsets. clone ( ) ) ;
697+ vtable. put_slot ( & mut new_array, 2 , indices. clone ( ) ) ;
698+ vtable. put_slot ( & mut new_array, 3 , values. clone ( ) ) ;
703699
704700 // Execute and verify the inner values changed (except at patch positions)
705701 let mut ctx = ExecutionCtx :: new ( VortexSession :: empty ( ) ) ;
0 commit comments