From 8e95fe484a327455b4974ab1f2731a0b00ec130a Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 19 Sep 2023 00:58:26 -0700 Subject: [PATCH] unnecessary cast --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 2fd5c605..dc7187b9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -172,7 +172,7 @@ fn add_obj(device:&wgpu::Device,modeldatas:& mut Vec,source:&[u8]){ for &index in &[0, end_index - 1, end_index] { let vert = poly.0[index]; if let Some(&i)=vertex_index.get(&vert){ - indices.push(i as u16); + indices.push(i); }else{ let i=vertices.len() as u16; vertices.push(Vertex {