Fix clippy -D warnings in video/trap tests (needless mut, identity op)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas 2026-10-03 03:27:22 -04:00
parent 6152c0a402
commit 33d51d2fa6
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ mod tests {
let (w, h, ch) = (6usize, 3usize, 4usize);
let mut px = vec![0.0f32; w * h * ch];
// One cyan pixel in the middle, rest paper.
px[(1 * w + 3) * ch] = 1.0;
px[(w + 3) * ch] = 1.0;
let before = px.clone();
trap(&mut px, w, h, ch, 1);
// Paper pixels (no ink) stay paper — no ink bleeds into white.

View File

@ -92,7 +92,7 @@ mod tests {
#[test]
fn new_and_clamp() {
let mut t = Timeline::new(0, 0.0);
let t = Timeline::new(0, 0.0);
assert_eq!(t.duration, 1);
assert_eq!(t.fps, 30.0);
let mut t = Timeline::new(24, 24.0);