mirror of
https://github.com/hannobraun/Fornjot
synced 2025-01-31 04:15:54 +00:00
Refactor
This commit is contained in:
parent
bc5e85ed1e
commit
be94ba1641
@ -65,8 +65,9 @@ impl PartialHalfEdge {
|
|||||||
mut self,
|
mut self,
|
||||||
vertices: Option<[impl Into<MaybePartial<Vertex>>; 2]>,
|
vertices: Option<[impl Into<MaybePartial<Vertex>>; 2]>,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
|
let vertices = vertices.map(|vertices| vertices.map(Into::into));
|
||||||
if let Some(vertices) = vertices {
|
if let Some(vertices) = vertices {
|
||||||
self.vertices = Some(vertices.map(Into::into));
|
self.vertices = Some(vertices);
|
||||||
}
|
}
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user