From a45246a0e8d26a729ef77a6f1d164e622c1f3a1e Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Fri, 11 Oct 2024 20:47:42 +0100 Subject: [PATCH] Fix clippy lints from 2024-10-11 --- tracker/agb-xm-core/src/lib.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tracker/agb-xm-core/src/lib.rs b/tracker/agb-xm-core/src/lib.rs index 735a925ac..8122c4fbc 100644 --- a/tracker/agb-xm-core/src/lib.rs +++ b/tracker/agb-xm-core/src/lib.rs @@ -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::>(); + 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, } }