Skip to content

Commit

Permalink
Cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac8668 committed Jan 31, 2024
1 parent 7b9e4b0 commit 5e9d2d8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,8 @@ pub fn grab_rigidbodies(
}
}
}
} else {
if let Some(ent) = grabbed.0.take() {
commands.entity(ent).despawn_recursive()
}
} else if let Some(ent) = grabbed.0.take() {
commands.entity(ent).despawn_recursive()
}
}

Expand Down

0 comments on commit 5e9d2d8

Please sign in to comment.