From 595f63f07d8ce92e608323c117b7bf4783e8943d Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Fri, 9 Feb 2024 11:52:02 +0100 Subject: [PATCH] Refactor to improve clarity --- crates/fj-core/src/operations/sweep/face.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/fj-core/src/operations/sweep/face.rs b/crates/fj-core/src/operations/sweep/face.rs index f01afc1ee..6cd0774b9 100644 --- a/crates/fj-core/src/operations/sweep/face.rs +++ b/crates/fj-core/src/operations/sweep/face.rs @@ -46,8 +46,6 @@ impl SweepFace for Handle { let path = path.into(); - let mut faces = Vec::new(); - let bottom_face = self; let other_faces = bottom_face @@ -56,6 +54,7 @@ impl SweepFace for Handle { .all_faces() .map(|side_face| side_face.insert(&mut core.services)); + let mut faces = Vec::new(); faces.push(bottom_face.clone()); faces.extend(other_faces);