From be94ba164198de80db9eaf90e2ecab641397b73f Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Wed, 12 Oct 2022 15:38:34 +0200 Subject: [PATCH] Refactor --- crates/fj-kernel/src/partial/objects/edge.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/fj-kernel/src/partial/objects/edge.rs b/crates/fj-kernel/src/partial/objects/edge.rs index eccdc378a..31b4385d7 100644 --- a/crates/fj-kernel/src/partial/objects/edge.rs +++ b/crates/fj-kernel/src/partial/objects/edge.rs @@ -65,8 +65,9 @@ impl PartialHalfEdge { mut self, vertices: Option<[impl Into>; 2]>, ) -> Self { + let vertices = vertices.map(|vertices| vertices.map(Into::into)); if let Some(vertices) = vertices { - self.vertices = Some(vertices.map(Into::into)); + self.vertices = Some(vertices); } self }