From cf47173e4927bd8a52bde6f8f5a48d9220390646 Mon Sep 17 00:00:00 2001 From: MyBlackMIDIScore Date: Wed, 16 Oct 2024 16:33:35 +0300 Subject: [PATCH] Remove some brackets --- src/gui/window.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/gui/window.rs b/src/gui/window.rs index cbdcdd3..2eee04f 100644 --- a/src/gui/window.rs +++ b/src/gui/window.rs @@ -293,12 +293,10 @@ impl GuiWasabiWindow { }); // If song is finished, pause - { - let length = midi_file.midi_length().unwrap_or(0.0); - let current = midi_file.timer().get_time().as_seconds_f64(); - if current > length { - midi_file.timer_mut().pause(); - } + let length = midi_file.midi_length().unwrap_or(0.0); + let current = midi_file.timer().get_time().as_seconds_f64(); + if current > length { + midi_file.timer_mut().pause(); } let result = self.render_scene.draw(