This commit is contained in:
Hanno Braun 2022-10-12 15:38:34 +02:00
parent bc5e85ed1e
commit be94ba1641

View File

@ -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
} }