Shorten panic messages

This commit is contained in:
Hanno Braun 2022-10-12 15:46:10 +02:00
parent d5efbd1802
commit c2a28e0644

View File

@ -48,17 +48,17 @@ impl PartialCycle {
.half_edges .half_edges
.last() .last()
.map(|half_edge| { .map(|half_edge| {
let [_, last] = half_edge.vertices().expect( let [_, last] = half_edge
"Need half-edge vertices to extend cycle with poly-chain", .vertices()
); .expect("Need half-edge vertices to extend cycle");
let last = last.surface_form().expect( let last = last
"Need surface vertex to extend cycle with poly-chain", .surface_form()
); .expect("Need surface vertex to extend cycle");
let vertex = last.clone(); let vertex = last.clone();
let position = last.position().expect( let position = last
"Need surface position to extend cycle with poly-chain", .position()
); .expect("Need surface position to extend cycle");
(position, Some(vertex)) (position, Some(vertex))
}) })