From 85bc81d4fce29bf628d31cb978aa482e564aab90 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Thu, 4 Feb 2021 13:11:04 +0100 Subject: Make clippy a bit happier --- src/dynamics/joint/joint_set.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/dynamics/joint') diff --git a/src/dynamics/joint/joint_set.rs b/src/dynamics/joint/joint_set.rs index a87532a..ed3e69a 100644 --- a/src/dynamics/joint/joint_set.rs +++ b/src/dynamics/joint/joint_set.rs @@ -55,6 +55,11 @@ impl JointSet { self.joint_graph.graph.edges.len() } + /// `true` if there are no joints in this set. + pub fn is_empty(&self) -> bool { + self.joint_graph.graph.edges.is_empty() + } + /// Retrieve the joint graph where edges are joints and nodes are rigid body handles. pub fn joint_graph(&self) -> &InteractionGraph { &self.joint_graph -- cgit