Fix clippy lints from 2024-10-11 (#784)

Unnecessary conversions. Seems to have actually come from a minor
version bump of xmrs

- [x] no changelog update needed
This commit is contained in:
Gwilym Inzani 2024-10-11 20:55:40 +01:00 committed by GitHub
commit 89403d0aae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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