diff options
| author | Emil Ernerfeldt <emil.ernerfeldt@gmail.com> | 2021-02-24 15:59:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-24 15:59:06 +0100 |
| commit | 69afb2914ac0dbbec6901e59b263115a52a024cf (patch) | |
| tree | cd847f11d63131e8a071a470c06635ec647c32d0 /src/dynamics/joint | |
| parent | 504b84bb06d281f2b8752d124f3015ff91f31983 (diff) | |
| download | rapier-69afb2914ac0dbbec6901e59b263115a52a024cf.tar.gz rapier-69afb2914ac0dbbec6901e59b263115a52a024cf.tar.bz2 rapier-69afb2914ac0dbbec6901e59b263115a52a024cf.zip | |
less mut
Co-authored-by: Sébastien Crozet <sebastien@crozet.re>
Diffstat (limited to 'src/dynamics/joint')
| -rw-r--r-- | src/dynamics/joint/joint_set.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dynamics/joint/joint_set.rs b/src/dynamics/joint/joint_set.rs index 513aa4b..1f25cff 100644 --- a/src/dynamics/joint/joint_set.rs +++ b/src/dynamics/joint/joint_set.rs @@ -78,7 +78,7 @@ impl JointSet { /// Gets a mutable reference to the joint with the given handle. pub fn get_mut(&mut self, handle: JointHandle) -> Option<&mut Joint> { - let id = self.joint_ids.get_mut(handle.0)?; + let id = self.joint_ids.get(handle.0)?; self.joint_graph.graph.edge_weight_mut(*id) } |
