Skip to content

Commit

Permalink
Remove unnecessary Box
Browse files Browse the repository at this point in the history
I think Clippy complained about too-large enum variants here earlier,
but now that it's `Handle`s, that's no longer an issue.
  • Loading branch information
hannobraun committed Nov 15, 2023
1 parent c097614 commit 95ea141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/fj-core/src/validate/cycle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub enum CycleValidationError {
distance: Scalar,

/// The edges
half_edges: Box<[Handle<HalfEdge>; 2]>,
half_edges: [Handle<HalfEdge>; 2],
},
}

Expand All @@ -64,7 +64,7 @@ impl CycleValidationError {
end_of_first,
start_of_second,
distance,
half_edges: Box::new([first.clone(), second.clone()]),
half_edges: [first.clone(), second.clone()],
}
.into(),
);
Expand Down

0 comments on commit 95ea141

Please sign in to comment.