From c2a28e0644027cb6295b1db25f040a5d2307cf73 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Wed, 12 Oct 2022 15:46:10 +0200 Subject: [PATCH] Shorten panic messages --- crates/fj-kernel/src/partial/objects/cycle.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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)) })