diff options
| author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2024-07-18 14:45:41 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-18 09:45:41 +0200 |
| commit | 850aa31166ce6038d5055225c34ab60f8bff408d (patch) | |
| tree | e38bc9d02f1abb0fcd81707bd89c63ec1ef99803 /src | |
| parent | 00f59d2877faa1cc3d1931664ba691f5d9324243 (diff) | |
| download | rapier-850aa31166ce6038d5055225c34ab60f8bff408d.tar.gz rapier-850aa31166ce6038d5055225c34ab60f8bff408d.tar.bz2 rapier-850aa31166ce6038d5055225c34ab60f8bff408d.zip | |
clippy: Fix `clippy::field_reassign_with_default` lints (#690)
Diffstat (limited to 'src')
| -rw-r--r-- | src/pipeline/physics_pipeline.rs | 6 |
1 files changed, 4 insertions, 2 deletions
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( |
