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:
parent
6152c0a402
commit
33d51d2fa6
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue