Fix clippy lints from 2024-10-11

This commit is contained in:
Gwilym Inzani 2024-10-11 20:47:42 +01:00
parent 06bd8d950c
commit a45246a0e8

View file

@ -565,11 +565,7 @@ pub fn parse_module(module: &Module) -> agb_tracker_interop::Track {
}) })
.collect(); .collect();
let patterns_to_play = module let patterns_to_play = module.pattern_order.clone();
.pattern_order
.iter()
.map(|order| *order as usize)
.collect::<Vec<_>>();
let envelopes = envelopes let envelopes = envelopes
.iter() .iter()
@ -598,7 +594,7 @@ pub fn parse_module(module: &Module) -> agb_tracker_interop::Track {
frames_per_tick, frames_per_tick,
ticks_per_step: ticks_per_step.into(), ticks_per_step: ticks_per_step.into(),
repeat: module.restart_position as usize, repeat: module.restart_position,
} }
} }