Skip to content

Commit

Permalink
- ___ -
Browse files Browse the repository at this point in the history
  • Loading branch information
cart committed Jan 18, 2025
1 parent 504b105 commit 626d35a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions crates/bevy_transform/src/systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,10 @@ mod test {
.spawn(Transform::IDENTITY)
.add_children(&[child]);
core::mem::swap(
#[expect(unsafe_code)]
#[expect(
unsafe_code,
reason = "Parent is not mutable but this is for a test to produce a scenario that cannot happen"
)]
// SAFETY: Parent is not mutable but this is for a test to produce a scenario that cannot happen
unsafe {
&mut *app
Expand All @@ -464,7 +467,10 @@ mod test {
.unwrap()
},
// SAFETY: Parent is not mutable but this is for a test to produce a scenario that cannot happen
#[expect(unsafe_code)]
#[expect(
unsafe_code,
reason = "Parent is not mutable but this is for a test to produce a scenario that cannot happen"
)]
unsafe {
&mut *temp
.entity_mut(grandchild)
Expand Down

0 comments on commit 626d35a

Please sign in to comment.