From eee327229331885b4fe81d2f01f1fd35db915e97 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 8 Feb 2024 16:43:30 -0800 Subject: [PATCH] damned deref --- src/model_physics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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<'_>{