Skip to content

Commit

Permalink
Fix clippy lints from 2024-10-11 (#784)
Browse files Browse the repository at this point in the history
Unnecessary conversions. Seems to have actually come from a minor
version bump of xmrs

- [x] no changelog update needed
  • Loading branch information
gwilymk authored Oct 11, 2024
2 parents 06bd8d9 + a45246a commit 89403d0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tracker/agb-xm-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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,
}
}

Expand Down

0 comments on commit 89403d0

Please sign in to comment.