From f1112f9d4971a65b1504b04e716fd6020f923d02 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Tue, 5 Nov 2024 19:47:07 +0100 Subject: [PATCH] Prepare for follow-on change --- experiments/2024-10-30/src/geometry.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {