From 0dd0474bb0223863648cee53c00bed78a0dc331f Mon Sep 17 00:00:00 2001 From: yuni Date: Sun, 15 Sep 2024 04:53:33 +0200 Subject: [PATCH] cargo fmt --- src/audio.rs | 6 +----- src/game.rs | 3 +-- src/var.rs | 5 +---- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/src/audio.rs b/src/audio.rs index a495b3d..c0b3047 100644 --- a/src/audio.rs +++ b/src/audio.rs @@ -47,11 +47,7 @@ impl Plugin for AudioPlugin { pub struct ZoomTimer(Timer); const PATHS: &[(SfxType, Sfx, &str)] = &[ - ( - SfxType::Radio, - Sfx::BGMTakeoff, - "music/Takeoff.ogg", - ), + (SfxType::Radio, Sfx::BGMTakeoff, "music/Takeoff.ogg"), ( SfxType::Radio, Sfx::BGMActualJupiterRecording, diff --git a/src/game.rs b/src/game.rs index 7b2e6a9..0ecba33 100644 --- a/src/game.rs +++ b/src/game.rs @@ -362,8 +362,7 @@ fn handle_cheats( settings.god_mode ^= true; if settings.god_mode { ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Honk)); - } - else { + } else { ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Switch)); } } diff --git a/src/var.rs b/src/var.rs index 96206ae..5baa518 100644 --- a/src/var.rs +++ b/src/var.rs @@ -172,10 +172,7 @@ impl Default for Settings { alive: true, mute_sfx: false, noise_cancellation_mode: 0, - noise_cancellation_modes: vec![ - "Off".to_string(), - "On".to_string(), - ], + noise_cancellation_modes: vec!["Off".to_string(), "On".to_string()], radio_mode: 1, radio_modes: vec![ // see also: settings.is_radio_playing()