From 1f9d204f16b90e5ad80ab7eda5adffcad6a7f40b Mon Sep 17 00:00:00 2001 From: "Aatman Jain (AJ)" <257399449+AatmanAJ@users.noreply.github.com> Date: Sun, 11 Oct 2026 10:21:00 +0100 Subject: [PATCH] fix(export): count export audio jobs with enumerate to satisfy clippy The export audio thread kept a manual rendered_frames counter that was only read to detect the first job. clippy::explicit_counter_loop rejects that under -D warnings, which has failed the Clippy and Rust cache jobs on main (macOS and Windows) since #2448. Take the index from enumerate instead; behaviour is unchanged. --- crates/export/src/mp4.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/export/src/mp4.rs b/crates/export/src/mp4.rs index ef0f258e6ac..99efd61730c 100644 --- a/crates/export/src/mp4.rs +++ b/crates/export/src/mp4.rs @@ -972,8 +972,7 @@ impl ExportAudioWorker { let fps_u64 = u64::from(fps); let mut cursor = 0u64; let mut last_timeline_frame: Option = None; - let mut rendered_frames = 0u32; - for job in job_rx { + for (rendered_frames, job) in job_rx.into_iter().enumerate() { if is_cancelled() { return Err(Mp4PipelineError::Interrupted); } @@ -1043,7 +1042,6 @@ impl ExportAudioWorker { } } last_timeline_frame = Some(job.timeline_frame); - rendered_frames += 1; if packet_tx.send(queue.take()).is_err() { return Err(Mp4PipelineError::Interrupted); }