From abbf309b6a5fa99ec1847016141f242b33750ff8 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Fri, 16 Dec 2022 15:58:04 +0100 Subject: [PATCH] Refactor --- crates/fj-kernel/src/builder/cycle.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/fj-kernel/src/builder/cycle.rs b/crates/fj-kernel/src/builder/cycle.rs index 2af64d211..31d279e73 100644 --- a/crates/fj-kernel/src/builder/cycle.rs +++ b/crates/fj-kernel/src/builder/cycle.rs @@ -53,10 +53,11 @@ impl CycleBuilder for PartialCycle { points: impl IntoIterator>>, ) -> Vec> { let surface = surface.into(); + let points = points.into_iter().map(Into::into); let mut half_edges = Vec::new(); - for point in points.into_iter().map(Into::into) { + for point in points { let mut half_edge = self.add_half_edge(); {