Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Oct 28, 2022
1 parent e1b0625 commit 2648fc8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/fj-kernel/src/partial/maybe_partial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,7 @@ impl MaybePartial<HalfEdge> {
/// Access the vertices
pub fn vertices(&self) -> [MaybePartial<Vertex>; 2] {
match self {
Self::Full(full) => {
full.vertices().clone().map(|vertex| vertex.into())
}
Self::Full(full) => full.vertices().clone().map(Into::into),
Self::Partial(partial) => partial.vertices.clone(),
}
}
Expand Down

0 comments on commit 2648fc8

Please sign in to comment.