From aeb686c5cdd8b8f91f1791de08b7e7d978362d3a Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Tue, 8 Nov 2022 12:35:32 +0100 Subject: [PATCH] Refactor --- crates/fj-kernel/src/builder/cycle.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/fj-kernel/src/builder/cycle.rs b/crates/fj-kernel/src/builder/cycle.rs index 0de1fa0df..09f25cd30 100644 --- a/crates/fj-kernel/src/builder/cycle.rs +++ b/crates/fj-kernel/src/builder/cycle.rs @@ -68,7 +68,7 @@ impl CycleBuilder for PartialCycle { .with_surface(Some(surface.clone())) .update_as_line_from_points([position_prev, position_next]); - let [from, to] = [(0., vertex_prev), (1., vertex_next)].map( + let vertices = [(0., vertex_prev), (1., vertex_next)].map( |(position, surface_form)| { Vertex::partial() .with_curve(curve.clone()) @@ -80,7 +80,7 @@ impl CycleBuilder for PartialCycle { half_edges.push( HalfEdge::partial() .with_curve(curve) - .with_vertices([from, to]), + .with_vertices(vertices), ); continue;