From 88bbce9fd8bd8b7a59d3c29c7784468acfc792f3 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Mon, 12 Dec 2022 19:23:38 +0100 Subject: [PATCH] Refactor --- crates/fj-kernel/src/builder/shell.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/fj-kernel/src/builder/shell.rs b/crates/fj-kernel/src/builder/shell.rs index 8fc705d996..51b5ba2703 100644 --- a/crates/fj-kernel/src/builder/shell.rs +++ b/crates/fj-kernel/src/builder/shell.rs @@ -122,9 +122,11 @@ impl ShellBuilder { .into_iter() .zip(&surfaces) .map(|(bottom, surface): (Partial, _)| { - let [_, from] = &bottom.read().vertices; - - let from_surface = from.read().surface_form.clone(); + let from_surface = { + let [_, from] = &bottom.read().vertices; + let from = from.read(); + from.surface_form.clone() + }; let to = PartialSurfaceVertex { position: Some( from_surface.read().position.unwrap()