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);