From c9153b1dce3b50c63ee0e35e1a366b1fe9184d30 Mon Sep 17 00:00:00 2001
From: Quaternions <krakow20@gmail.com>
Date: Thu, 7 Sep 2023 16:15:09 -0700
Subject: [PATCH] unnecessary type cast to same type

---
 src/main.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index 2d93449..a1f0f16 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -172,7 +172,7 @@ fn add_obj(device:&wgpu::Device,modeldatas:& mut Vec<ModelData>,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 {
@@ -303,7 +303,7 @@ impl strafe_client::framework::Example for Skybox {
 									let vert = face*4+index;
 									let unique_id=(vert * 1<<0) + (index * 1<<8) + (face * 1<<16);
 									if let Some(&i)=vertex_index.get(&unique_id){
-										indices.push(i as u16);
+										indices.push(i);
 									}else{
 										let i=vertices.len() as u16;
 										vertices.push(Vertex {