Format the let-else

This commit is contained in:
Gwilym Inzani 2023-11-14 20:53:54 +00:00
parent 9f60b61289
commit 817ba12ea7

View file

@ -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![];