From 166ca17f5e5d1b9d61b93933cd9b52d0497a729c Mon Sep 17 00:00:00 2001 From: yuni Date: Sun, 17 Nov 2024 18:19:47 +0100 Subject: [PATCH] cargo fmt --- build.rs | 5 ++++- src/audio.rs | 10 ++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/build.rs b/build.rs index 32bde6b..5d39675 100644 --- a/build.rs +++ b/build.rs @@ -67,7 +67,10 @@ fn extract_scene(file: &mut File, scene_name: &str, blend_file: &str) -> std::io }; let name = obj.get("id").get_string("name"); if let Some(name) = get_scene_object_name(name.as_str()) { - write!(file, "({scene_name:?}, {name:?}, {loc:?}, {rot:?}, {scale:?}),\n")?; + write!( + file, + "({scene_name:?}, {name:?}, {loc:?}, {rot:?}, {scale:?}),\n" + )?; } } Ok(()) diff --git a/src/audio.rs b/src/audio.rs index 1ae3922..f544290 100644 --- a/src/audio.rs +++ b/src/audio.rs @@ -53,11 +53,7 @@ const PATHS: &[(SfxType, Sfx, &str)] = &[ Sfx::BGMActualJupiterRecording, "music/JupiterRecording.ogg", ), - ( - SfxType::Radio, - Sfx::BGMOutrun, - "music/Outrun.ogg", - ), + (SfxType::Radio, Sfx::BGMOutrun, "music/Outrun.ogg"), ( SfxType::LoopSfx, Sfx::ElectricMotor, @@ -93,9 +89,7 @@ const PATHS: &[(SfxType, Sfx, &str)] = &[ (SfxType::OneOff, Sfx::Zoom, "sounds/zoom.ogg"), ]; -const RADIO_VOLUMES: &[(Sfx, f32)] = &[ - (Sfx::BGMOutrun, 0.3) -]; +const RADIO_VOLUMES: &[(Sfx, f32)] = &[(Sfx::BGMOutrun, 0.3)]; #[derive(Component, PartialEq, Hash, Eq, Copy, Clone)] pub enum Sfx {