diff options
| author | Emil Ernerfeldt <emil.ernerfeldt@gmail.com> | 2021-02-24 15:59:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-24 15:59:11 +0100 |
| commit | 277d74fb1891950a7a80c2052a2b044521d91e2f (patch) | |
| tree | 98a08e662c8e2fba8c88c19cfcb2f2aa05ce5d2c /src | |
| parent | 69afb2914ac0dbbec6901e59b263115a52a024cf (diff) | |
| download | rapier-277d74fb1891950a7a80c2052a2b044521d91e2f.tar.gz rapier-277d74fb1891950a7a80c2052a2b044521d91e2f.tar.bz2 rapier-277d74fb1891950a7a80c2052a2b044521d91e2f.zip | |
less mut
Co-authored-by: Sébastien Crozet <sebastien@crozet.re>
Diffstat (limited to 'src')
| -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 1f25cff..b3a0fd9 100644 --- a/src/dynamics/joint/joint_set.rs +++ b/src/dynamics/joint/joint_set.rs @@ -109,7 +109,7 @@ impl JointSet { /// Using this is discouraged in favor of `self.get_mut(handle)` which does not /// suffer form the ABA problem. pub fn get_unknown_gen_mut(&mut self, i: usize) -> Option<(&mut Joint, JointHandle)> { - let (id, handle) = self.joint_ids.get_unknown_gen_mut(i)?; + let (id, handle) = self.joint_ids.get_unknown_gen(i)?; Some(( self.joint_graph.graph.edge_weight_mut(*id)?, JointHandle(handle), |
