From dd39e1fdc13f04f18975a70736d2ed7f752a6df2 Mon Sep 17 00:00:00 2001 From: "sorokin.oleg.edu" Date: Sat, 12 Sep 2026 18:36:16 -0700 Subject: [PATCH] Dereference pixel arrays for readonly color comparison --- crates/oa-desktop/src/style/tests/readonly.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/oa-desktop/src/style/tests/readonly.rs b/crates/oa-desktop/src/style/tests/readonly.rs index 3ef9acd3..ff825a04 100644 --- a/crates/oa-desktop/src/style/tests/readonly.rs +++ b/crates/oa-desktop/src/style/tests/readonly.rs @@ -186,7 +186,7 @@ async fn mounted_readonly_input_keeps_selection_copy_and_readable_paint() { .0 .iter() .enumerate() - .filter(|(_, pixel)| near(pixel, style.selection, 3)) + .filter(|(_, pixel)| near(*pixel, style.selection, 3)) .map(|(index, _)| (index % 480, index / 480)) .collect(); assert!( @@ -206,7 +206,7 @@ async fn mounted_readonly_input_keeps_selection_copy_and_readable_paint() { let (x, y) = (index % 480, index / 480); (left..=right).contains(&x) && (top..=bottom).contains(&y) - && near(pixel, style.value, 12) + && near(*pixel, style.value, 12) }) .count(); assert!(