This commit is contained in:
Hanno Braun 2022-06-28 17:37:18 +02:00
parent c7fdf22bf7
commit ab3ee7bf0d

View File

@ -89,7 +89,7 @@ impl<'r> EdgeBuilder<'r> {
[a, b]: [Vertex; 2], [a, b]: [Vertex; 2],
) -> Handle<Edge<3>> { ) -> Handle<Edge<3>> {
let curve = { let curve = {
let points = [&a, &b].map(|vertex| vertex.point); let points = [a, b].map(|vertex| vertex.point);
let curve = Curve::Line(Line::from_points(points)); let curve = Curve::Line(Line::from_points(points));
self.shape.get_handle_or_insert(curve) self.shape.get_handle_or_insert(curve)
}; };