Consolidate redundant method call

This commit is contained in:
Hanno Braun 2023-05-04 10:09:47 +02:00
parent 633c4ea857
commit 203808d0de
1 changed files with 4 additions and 3 deletions

View File

@ -83,12 +83,13 @@ impl Sweep for Handle<Face> {
} }
let top_cycle = CycleBuilder::connect_to_edges(top_edges, services) let top_cycle = CycleBuilder::connect_to_edges(top_edges, services)
.build(services); .build(services)
.insert(services);
if i == 0 { if i == 0 {
exterior = Some(top_cycle.insert(services)); exterior = Some(top_cycle);
} else { } else {
interiors.push(top_cycle.insert(services)); interiors.push(top_cycle);
}; };
} }