mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
Format the let-else
This commit is contained in:
parent
9f60b61289
commit
817ba12ea7
|
@ -144,7 +144,9 @@ pub fn parse_midi(midi_info: &MidiInfo) -> TokenStream {
|
||||||
Format::SingleTrack,
|
Format::SingleTrack,
|
||||||
"Only single track is currently supported"
|
"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 ticks_per_beat = timing.as_int();
|
||||||
|
|
||||||
let mut channel_data = vec![];
|
let mut channel_data = vec![];
|
||||||
|
|
Loading…
Reference in a new issue