@@ -1589,12 +1589,11 @@ 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 = unsafe {
1592
+ let ticks =
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
- TicksMut :: from_tick_cells ( ticks, self . last_change_tick ( ) , change_tick)
1597
- } ;
1596
+ unsafe { TicksMut :: from_tick_cells ( ticks, self . last_change_tick ( ) , change_tick) } ;
1598
1597
1599
1598
Some ( MutUntyped {
1600
1599
// SAFETY: This function has exclusive access to the world so nothing aliases `ptr`.
@@ -1634,12 +1633,11 @@ impl World {
1634
1633
let change_tick = self . change_tick ( ) ;
1635
1634
let ( ptr, ticks) = self . get_non_send_with_ticks ( component_id) ?;
1636
1635
1637
- let ticks = unsafe {
1636
+ let ticks =
1638
1637
// SAFETY: This function has exclusive access to the world so nothing aliases `ticks`.
1639
1638
// - index is in-bounds because the column is initialized and non-empty
1640
1639
// - 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
+ unsafe { TicksMut :: from_tick_cells ( ticks, self . last_change_tick ( ) , change_tick) } ;
1643
1641
1644
1642
Some ( MutUntyped {
1645
1643
// SAFETY: This function has exclusive access to the world so nothing aliases `ptr`.
0 commit comments