Skip to content

Commit

Permalink
Fix clippy lints from 2024-10-11
Browse files Browse the repository at this point in the history
  • Loading branch information
gwilymk committed Oct 11, 2024
1 parent 06bd8d9 commit a45246a
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 a45246a

Please sign in to comment.