Skip to content

Commit

Permalink
Prepare for follow-on change
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Nov 5, 2024
1 parent ccf934c commit f1112f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion experiments/2024-10-30/src/geometry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f1112f9

Please sign in to comment.