From 817ba12ea74a63c7ccb698151dc0b1513b2e3281 Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Tue, 14 Nov 2023 20:53:54 +0000 Subject: [PATCH] Format the let-else --- tracker/agb-midi-core/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tracker/agb-midi-core/src/lib.rs b/tracker/agb-midi-core/src/lib.rs index cc62b11a..d68d4d39 100644 --- a/tracker/agb-midi-core/src/lib.rs +++ b/tracker/agb-midi-core/src/lib.rs @@ -144,7 +144,9 @@ pub fn parse_midi(midi_info: &MidiInfo) -> TokenStream { Format::SingleTrack, "Only single track is currently supported" ); - let Timing::Metrical(timing) = midi.header.timing else { panic!("Only metrical timing is currently supported") }; + let Timing::Metrical(timing) = midi.header.timing else { + panic!("Only metrical timing is currently supported") + }; let ticks_per_beat = timing.as_int(); let mut channel_data = vec![];