diff --git a/src/tool_behaviors/move_handle.rs b/src/tool_behaviors/move_handle.rs index 8c6cee9..5733ec3 100644 --- a/src/tool_behaviors/move_handle.rs +++ b/src/tool_behaviors/move_handle.rs @@ -66,7 +66,7 @@ impl MoveHandle { follow = Follow::ForceLine; } - if point.get_handle(self.wh.opposite()).unwrap() == Handle::Colocated && follow == Follow::ForceLine { + if point.get_handle(self.wh.opposite()).is_some_and(|wh| wh == Handle::Colocated) && follow == Follow::ForceLine { // If the opposite handle is colocated, force line crashes due to unwrapping a None value. follow = Follow::No; }