From 787cd7f5183eb458594c1453c63395e2ae83b696 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Fri, 24 Nov 2023 17:13:45 +0100 Subject: [PATCH] Refactor to improve clarity --- crates/fj-core/src/operations/sweep/face.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/crates/fj-core/src/operations/sweep/face.rs b/crates/fj-core/src/operations/sweep/face.rs index 0be86ad07..1ba7c5a86 100644 --- a/crates/fj-core/src/operations/sweep/face.rs +++ b/crates/fj-core/src/operations/sweep/face.rs @@ -59,12 +59,11 @@ impl SweepFace for Face { services, ); - faces.extend( - swept_region - .faces - .into_iter() - .map(|side_face| side_face.insert(services)), - ); + let side_faces = swept_region + .faces + .into_iter() + .map(|side_face| side_face.insert(services)); + faces.extend(side_faces); let top_face = { let top_surface =