From b4113effa7d93c1c03f66594b41c1a217dc64a8d Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Mon, 13 Jan 2020 11:25:46 -0500 Subject: [PATCH] Reformat --- src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index a14b3dd..5b986cf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -95,8 +95,7 @@ static mut solar_Bodies: [body; BODIES_COUNT] = [ fn offset_Momentum(bodies: &mut [body; BODIES_COUNT]) { for i in 0..BODIES_COUNT { for m in 0..3 { - bodies[0].velocity[m] -= - bodies[i].velocity[m] * bodies[i].mass / SOLAR_MASS; + bodies[0].velocity[m] -= bodies[i].velocity[m] * bodies[i].mass / SOLAR_MASS; } } } @@ -175,8 +174,7 @@ unsafe fn advance(bodies: &mut [body; BODIES_COUNT]) { for i in 0..BODIES_COUNT - 1 { for j in i + 1..BODIES_COUNT { for m in 0..3 { - position_Deltas[m].0[k] = - bodies[i].position[m] - bodies[j].position[m]; + position_Deltas[m].0[k] = bodies[i].position[m] - bodies[j].position[m]; } k += 1; }