From 5f5c1984445273c063fcd397e0acad260cb339a6 Mon Sep 17 00:00:00 2001 From: FoOcean Date: Fri, 16 Oct 2026 09:50:13 -0400 Subject: [PATCH] style: satisfy clippy 1.99 lints CI now runs clippy 1.99, which flags manual_is_multiple_of in timer_view.rs and chunks_exact_to_as_chunks in recorder.rs, failing the PR Check job on master. Co-Authored-By: Claude Opus 5.5 --- src/ui/expanded/timer_view.rs | 2 +- src/utils/recorder.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ui/expanded/timer_view.rs b/src/ui/expanded/timer_view.rs index 7f02b676..32533213 100644 --- a/src/ui/expanded/timer_view.rs +++ b/src/ui/expanded/timer_view.rs @@ -299,7 +299,7 @@ pub fn clear_selection() { } pub fn duration_label(seconds: u64) -> String { - if seconds % 60 == 0 { + if seconds.is_multiple_of(60) { tr_args("timer_minutes", &[&(seconds / 60).to_string()]) } else { format_remaining(Duration::from_secs(seconds)) diff --git a/src/utils/recorder.rs b/src/utils/recorder.rs index 5fbe9ba5..b01589fd 100644 --- a/src/utils/recorder.rs +++ b/src/utils/recorder.rs @@ -129,7 +129,9 @@ fn write_job(directory: &Path, job: Job) -> io::Result<()> { let Job { first, last, frame } = job; let rgb: Vec = frame .pixels - .chunks_exact(4) + .as_chunks::<4>() + .0 + .iter() .flat_map(|pixel| [pixel[0], pixel[1], pixel[2]]) .collect(); let path = frame_path(directory, first);