diff --git a/crates/fj-kernel/src/partial/objects/cycle.rs b/crates/fj-kernel/src/partial/objects/cycle.rs index 41c84963b..be37c6a04 100644 --- a/crates/fj-kernel/src/partial/objects/cycle.rs +++ b/crates/fj-kernel/src/partial/objects/cycle.rs @@ -48,17 +48,17 @@ impl PartialCycle { .half_edges .last() .map(|half_edge| { - let [_, last] = half_edge.vertices().expect( - "Need half-edge vertices to extend cycle with poly-chain", - ); - let last = last.surface_form().expect( - "Need surface vertex to extend cycle with poly-chain", - ); + let [_, last] = half_edge + .vertices() + .expect("Need half-edge vertices to extend cycle"); + let last = last + .surface_form() + .expect("Need surface vertex to extend cycle"); let vertex = last.clone(); - let position = last.position().expect( - "Need surface position to extend cycle with poly-chain", - ); + let position = last + .position() + .expect("Need surface position to extend cycle"); (position, Some(vertex)) })