From b0ac9a9d70a888f5a3400e0f067c0969b71df560 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Fri, 14 Oct 2022 15:06:44 +0200 Subject: [PATCH] Update variable names The previous ones no long fit the current code. --- crates/fj-kernel/src/partial/objects/cycle.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/fj-kernel/src/partial/objects/cycle.rs b/crates/fj-kernel/src/partial/objects/cycle.rs index bbb15c2c6..2c791cadc 100644 --- a/crates/fj-kernel/src/partial/objects/cycle.rs +++ b/crates/fj-kernel/src/partial/objects/cycle.rs @@ -166,8 +166,8 @@ impl PartialCycle { let half_edges = { let (half_edges, _) = self.half_edges.into_iter().fold( (Vec::new(), None), - |(mut half_edges, previous_vertex), next| { - let next = next + |(mut half_edges, previous_vertex), half_edge| { + let half_edge = half_edge .update_partial(|half_edge| { let [from, _] = half_edge.vertices.clone(); let from = from.map(|vertex| { @@ -182,8 +182,8 @@ impl PartialCycle { }) .into_full(objects); - let front = next.front().surface_form().clone(); - half_edges.push(next); + let front = half_edge.front().surface_form().clone(); + half_edges.push(half_edge); (half_edges, Some(front)) },