From 7559786bae4bac5f4144c94841037452a6d8e272 Mon Sep 17 00:00:00 2001 From: yuni Date: Wed, 27 Nov 2024 22:57:30 +0100 Subject: [PATCH] cargo fmt --- src/cmd.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/cmd.rs b/src/cmd.rs index 6f7b6f6..8e9ff7d 100644 --- a/src/cmd.rs +++ b/src/cmd.rs @@ -1600,12 +1600,10 @@ fn spawn_entities( if state.atmosphere.is_some() { let atmosphere_id = state.atmosphere.clone().unwrap(); let component = match atmosphere_id.as_str() { - "jupiter" => { - Some(actor::HasAtmosphere { - r_inner: scale.x as f64 * 1.01, - r_outer: scale.x as f64 * 1.01 + nature::JUPITER_ATMO_HEIGHT, - }) - } + "jupiter" => Some(actor::HasAtmosphere { + r_inner: scale.x as f64 * 1.01, + r_outer: scale.x as f64 * 1.01 + nature::JUPITER_ATMO_HEIGHT, + }), _ => { error!("Unknown atmosphere id `{atmosphere_id}`"); None