From 850aa31166ce6038d5055225c34ab60f8bff408d Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Thu, 18 Jul 2024 14:45:41 +0700 Subject: clippy: Fix `clippy::field_reassign_with_default` lints (#690) --- src/pipeline/physics_pipeline.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/pipeline/physics_pipeline.rs b/src/pipeline/physics_pipeline.rs index 5dc6f2c..166868b 100644 --- a/src/pipeline/physics_pipeline.rs +++ b/src/pipeline/physics_pipeline.rs @@ -969,8 +969,10 @@ mod test { .local_anchor2(point![0.0, -3.0, 0.0]); impulse_joints.insert(h, h_dynamic, joint, true); - let mut parameters = IntegrationParameters::default(); - parameters.dt = 0.0; + let parameters = IntegrationParameters { + dt: 0.0, + ..Default::default() + }; // Step once let gravity = Vector::y() * -9.81; pipeline.step( -- cgit