diff --git a/src/model_physics.rs b/src/model_physics.rs index 366082c..4f51c15 100644 --- a/src/model_physics.rs +++ b/src/model_physics.rs @@ -396,7 +396,7 @@ struct PhysicsMeshView<'a>{ } impl PhysicsMeshView<'_>{ pub fn verts<'a>(&'a self)->impl Iterator+'a{ - self.data.verts.iter().map(|Vert(pos)|*pos) + self.data.verts.iter().map(|&Vert(pos)|pos) } } impl MeshQuery for PhysicsMeshView<'_>{