Co-authored-by: Sébastien Crozet <sebastien@crozet.re>
This commit is contained in:
Emil Ernerfeldt
2021-02-24 15:59:11 +01:00
committed by GitHub
parent 69afb2914a
commit 277d74fb18

View File

@@ -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),