Skip to content

Commit

Permalink
Refactor to consolidate redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Jul 17, 2023
1 parent 0e3c716 commit 8607aa0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions crates/fj-core/src/operations/reverse/cycle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,9 @@ impl Reverse for Cycle {
let mut edges = self
.half_edge_pairs()
.map(|(current, next)| {
let boundary = {
let [a, b] = current.boundary().inner;
[b, a]
};

HalfEdge::new(
current.path(),
boundary,
current.boundary().reverse(),
next.start_vertex().clone(),
current.global_form().clone(),
)
Expand Down

0 comments on commit 8607aa0

Please sign in to comment.