Skip to content

Commit

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

0 comments on commit 504b105

Please sign in to comment.