summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/src/mesh/cube.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/engine/src/mesh/cube.rs b/engine/src/mesh/cube.rs
index f00cf6d..ca946bb 100644
--- a/engine/src/mesh/cube.rs
+++ b/engine/src/mesh/cube.rs
@@ -53,8 +53,7 @@ pub fn create(
vertex_builder_cb: impl Fn(VertexBuilder, Side, Corner) -> VertexBuilder,
) -> Mesh
{
- let mut vertices: [Option<Vertex>; VertexIndex::VARIANT_CNT] =
- [(); VertexIndex::VARIANT_CNT].map(|()| None);
+ let mut vertices = [const { None }; VertexIndex::VARIANT_CNT];
create_front(&creation_spec, &mut vertices, &vertex_builder_cb);
create_back(&creation_spec, &mut vertices, &vertex_builder_cb);