diff --git a/experiments/2024-10-30/src/geometry.rs b/experiments/2024-10-30/src/geometry.rs index 0f7f48acc..0542e8911 100644 --- a/experiments/2024-10-30/src/geometry.rs +++ b/experiments/2024-10-30/src/geometry.rs @@ -8,7 +8,8 @@ pub struct Mesh { impl Mesh { pub fn vertex(&mut self, point: Point) { - self.vertices.push(Vertex { point }); + let vertex = Vertex { point }; + self.vertices.push(vertex); } pub fn triangle(&mut self, triangle: Triangle) {