cargo fmt

This commit is contained in:
yuni 2024-11-27 22:57:30 +01:00
parent 0a7f6ae702
commit 7559786bae

View file

@ -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