remove unneeded clone

This commit is contained in:
Chance 2025-03-29 01:32:07 -04:00 committed by BitSyndicate
parent cae3b40541
commit d0d0e7c016

View file

@ -215,7 +215,7 @@ impl App<'_> {
panic!() panic!()
} }
}; };
let mesh = obj.0.get(0).unwrap().mesh.clone(); let mesh = &obj.0.get(0).unwrap().mesh;
let vertices: Vec<Vertex> = (0..mesh.positions.len() / 3) let vertices: Vec<Vertex> = (0..mesh.positions.len() / 3)
.map(|i| Vertex { .map(|i| Vertex {