From 6071e23be1b6fd7333cc096b516db56af91427a2 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Sat, 11 Nov 2023 21:32:59 -0800 Subject: [PATCH] style --- src/physics.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/physics.rs b/src/physics.rs index ef12445..eec0338 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -790,9 +790,7 @@ impl TouchingState{ match models.attr(contact.model_id){ PhysicsCollisionAttributes::Contact{contacting,general}=>{ match &general.accelerator{ - Some(accelerator)=>{ - a+=accelerator.acceleration; - }, + Some(accelerator)=>a+=accelerator.acceleration, None=>(), } }, @@ -803,9 +801,7 @@ impl TouchingState{ match models.attr(intersect.model_id){ PhysicsCollisionAttributes::Intersect{intersecting,general}=>{ match &general.accelerator{ - Some(accelerator)=>{ - a+=accelerator.acceleration; - }, + Some(accelerator)=>a+=accelerator.acceleration, None=>(), } },