From 203808d0dea01db691fd55c9c2d027b861d22d43 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Thu, 4 May 2023 10:09:47 +0200 Subject: [PATCH] Consolidate redundant method call --- crates/fj-kernel/src/algorithms/sweep/face.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/fj-kernel/src/algorithms/sweep/face.rs b/crates/fj-kernel/src/algorithms/sweep/face.rs index 47441023a..743661428 100644 --- a/crates/fj-kernel/src/algorithms/sweep/face.rs +++ b/crates/fj-kernel/src/algorithms/sweep/face.rs @@ -83,12 +83,13 @@ impl Sweep for Handle { } let top_cycle = CycleBuilder::connect_to_edges(top_edges, services) - .build(services); + .build(services) + .insert(services); if i == 0 { - exterior = Some(top_cycle.insert(services)); + exterior = Some(top_cycle); } else { - interiors.push(top_cycle.insert(services)); + interiors.push(top_cycle); }; }