Modern Apps git

← Modern-Apps.git

camera_stitch: fix clippy warnings

Commit
8625ee67cb4b5b1fca0dc0e72f6318c66b5d671e
Author
Vayun Mathur <[email protected]>
When
2026-11-17 14:08 UTC (18 days ago)
Parents
44f9071
Remove the identity operation in the math_edges test (1 * 4
simplified to 4) as flagged by clippy::identity_op.

Verified: cargo check -p camera_stitch --all-targets and
cargo clippy -p camera_stitch --all-targets report no crate
warnings; cargo test -p camera_stitch passes.

Diff

camera/src/main/rust/tests/math_edges.rs
diff --git a/camera/src/main/rust/tests/math_edges.rs b/camera/src/main/rust/tests/math_edges.rsindex 14b3ff0605..d016ce39c9 100644--- a/camera/src/main/rust/tests/math_edges.rs+++ b/camera/src/main/rust/tests/math_edges.rs@@ -79,5 +79,5 @@ fn rgba_sample_resize_and_gray_behave() {     assert_eq!((small.w, small.h), (2, 2));     let gray = to_gray(&img);     assert_eq!((gray.w, gray.h), (4, 4));-    assert_eq!(gray.px[1 * 4 + 1], ((255u32 * 77) >> 8) as u8);+    assert_eq!(gray.px[4 + 1], ((255u32 * 77) >> 8) as u8); }