Make clippy a bit happier

This commit is contained in:
Emil Ernerfeldt
2021-02-04 13:11:04 +01:00
parent 88cde90425
commit 85bc81d4fc
15 changed files with 48 additions and 33 deletions

View File

@@ -106,6 +106,11 @@ impl RigidBodySet {
self.bodies.len()
}
/// `true` if there are no rigid bodies in this set.
pub fn is_empty(&self) -> bool {
self.bodies.is_empty()
}
/// Is the given body handle valid?
pub fn contains(&self, handle: RigidBodyHandle) -> bool {
self.bodies.contains(handle.0)