@@ -1589,11 +1589,12 @@ impl World {
1589
1589
let change_tick = self . change_tick ( ) ;
1590
1590
let ( ptr, ticks) = self . get_resource_with_ticks ( component_id) ?;
1591
1591
1592
- let ticks =
1592
+ let ticks = unsafe {
1593
1593
// SAFETY: This function has exclusive access to the world so nothing aliases `ticks`.
1594
1594
// - index is in-bounds because the column is initialized and non-empty
1595
1595
// - no other reference to the ticks of the same row can exist at the same time
1596
- unsafe { TicksMut :: from_tick_cells ( ticks, self . last_change_tick ( ) , change_tick) } ;
1596
+ TicksMut :: from_tick_cells ( ticks, self . last_change_tick ( ) , change_tick)
1597
+ } ;
1597
1598
1598
1599
Some ( MutUntyped {
1599
1600
// SAFETY: This function has exclusive access to the world so nothing aliases `ptr`.
@@ -1633,10 +1634,12 @@ impl World {
1633
1634
let change_tick = self . change_tick ( ) ;
1634
1635
let ( ptr, ticks) = self . get_non_send_with_ticks ( component_id) ?;
1635
1636
1636
- // SAFETY: This function has exclusive access to the world so nothing aliases `ticks`.
1637
- // - index is in-bounds because the column is initialized and non-empty
1638
- // - no other reference to the ticks of the same row can exist at the same time
1639
- let ticks = unsafe { TicksMut :: from_tick_cells ( ticks, self . last_change_tick ( ) , change_tick) } ;
1637
+ let ticks = unsafe {
1638
+ // SAFETY: This function has exclusive access to the world so nothing aliases `ticks`.
1639
+ // - index is in-bounds because the column is initialized and non-empty
1640
+ // - no other reference to the ticks of the same row can exist at the same time
1641
+ TicksMut :: from_tick_cells ( ticks, self . last_change_tick ( ) , change_tick)
1642
+ } ;
1640
1643
1641
1644
Some ( MutUntyped {
1642
1645
// SAFETY: This function has exclusive access to the world so nothing aliases `ptr`.
0 commit comments