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 {