@@ -336,7 +336,7 @@ impl<'w, 's, T: Component> Fetch<'w, 's> for ReadFetch<T> {
336
336
let column = tables[ archetype. table_id ( ) ]
337
337
. get_column ( state. component_id )
338
338
. unwrap ( ) ;
339
- self . table_components = column. get_data_ptr ( ) . inner_nonnull ( ) . cast :: < T > ( ) ;
339
+ self . table_components = column. get_data_ptr ( ) . inner ( ) . cast :: < T > ( ) ;
340
340
}
341
341
StorageType :: SparseSet => self . entities = archetype. entities ( ) . as_ptr ( ) ,
342
342
}
@@ -348,7 +348,7 @@ impl<'w, 's, T: Component> Fetch<'w, 's> for ReadFetch<T> {
348
348
. get_column ( state. component_id )
349
349
. unwrap ( )
350
350
. get_data_ptr ( )
351
- . inner_nonnull ( )
351
+ . inner ( )
352
352
. cast :: < T > ( ) ;
353
353
}
354
354
@@ -364,7 +364,7 @@ impl<'w, 's, T: Component> Fetch<'w, 's> for ReadFetch<T> {
364
364
& * ( * self . sparse_set )
365
365
. get ( entity)
366
366
. unwrap ( )
367
- . inner_nonnull ( )
367
+ . inner ( )
368
368
. cast :: < T > ( )
369
369
. as_ptr ( )
370
370
}
@@ -502,7 +502,7 @@ impl<'w, 's, T: Component> Fetch<'w, 's> for WriteFetch<T> {
502
502
let column = tables[ archetype. table_id ( ) ]
503
503
. get_column ( state. component_id )
504
504
. unwrap ( ) ;
505
- self . table_components = column. get_data_ptr ( ) . inner_nonnull ( ) . cast :: < T > ( ) ;
505
+ self . table_components = column. get_data_ptr ( ) . inner ( ) . cast :: < T > ( ) ;
506
506
self . table_ticks = column. get_ticks_ptr ( ) ;
507
507
}
508
508
StorageType :: SparseSet => self . entities = archetype. entities ( ) . as_ptr ( ) ,
@@ -512,7 +512,7 @@ impl<'w, 's, T: Component> Fetch<'w, 's> for WriteFetch<T> {
512
512
#[ inline]
513
513
unsafe fn set_table ( & mut self , state : & Self :: State , table : & Table ) {
514
514
let column = table. get_column ( state. component_id ) . unwrap ( ) ;
515
- self . table_components = column. get_data_ptr ( ) . inner_nonnull ( ) . cast :: < T > ( ) ;
515
+ self . table_components = column. get_data_ptr ( ) . inner ( ) . cast :: < T > ( ) ;
516
516
self . table_ticks = column. get_ticks_ptr ( ) ;
517
517
}
518
518
@@ -535,7 +535,7 @@ impl<'w, 's, T: Component> Fetch<'w, 's> for WriteFetch<T> {
535
535
let ( component, component_ticks) =
536
536
( * self . sparse_set ) . get_with_ticks ( entity) . unwrap ( ) ;
537
537
Mut {
538
- value : & mut * component. inner_nonnull ( ) . cast :: < T > ( ) . as_ptr ( ) ,
538
+ value : & mut * component. inner ( ) . cast :: < T > ( ) . as_ptr ( ) ,
539
539
ticks : Ticks {
540
540
component_ticks : & mut * component_ticks. get ( ) ,
541
541
change_tick : self . change_tick ,
@@ -862,7 +862,7 @@ impl<'w, 's, T: Component> Fetch<'w, 's> for ChangeTrackersFetch<T> {
862
862
let column = tables[ archetype. table_id ( ) ]
863
863
. get_column ( state. component_id )
864
864
. unwrap ( ) ;
865
- self . table_ticks = column. get_ticks_const_ptr ( ) ;
865
+ self . table_ticks = column. get_ticks_ptr ( ) as * const _ ;
866
866
}
867
867
StorageType :: SparseSet => self . entities = archetype. entities ( ) . as_ptr ( ) ,
868
868
}
@@ -873,7 +873,7 @@ impl<'w, 's, T: Component> Fetch<'w, 's> for ChangeTrackersFetch<T> {
873
873
self . table_ticks = table
874
874
. get_column ( state. component_id )
875
875
. unwrap ( )
876
- . get_ticks_const_ptr ( ) ;
876
+ . get_ticks_ptr ( ) as * const _ ;
877
877
}
878
878
879
879
#[ inline]
0 commit comments