From e155cf85bf197b3852644271054a230a6cd8ba0f Mon Sep 17 00:00:00 2001 From: David Mann Date: Mon, 2 Nov 2026 14:09:34 +0100 Subject: [PATCH] Integration: batch tests read composed pixels with Buffer::into_px after main's #10514 (#10704, #10618) Main's buffer reuse (#10514) gives Buffer a Drop impl, so moving .px out of it no longer compiles. Co-Authored-By: Claude Opus 5.5 --- crates/engine/src/cmd/atn_cmds/stylize_tests.rs | 2 +- crates/engine/tests/convert_profile_atn.rs | 2 +- crates/engine/tests/convert_profile_options.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/engine/src/cmd/atn_cmds/stylize_tests.rs b/crates/engine/src/cmd/atn_cmds/stylize_tests.rs index 9599385536c..976940ef439 100644 --- a/crates/engine/src/cmd/atn_cmds/stylize_tests.rs +++ b/crates/engine/src/cmd/atn_cmds/stylize_tests.rs @@ -411,7 +411,7 @@ fn prepare_pattern(s: &mut Session, depth: u32, mode: &str) { } fn pixels(s: &Session) -> Vec<[f32; 4]> { - photocraft_compose::render(&s.active().unwrap().doc, photocraft_geom::Rect::new(0, 0, 32, 24)).px + photocraft_compose::render(&s.active().unwrap().doc, photocraft_geom::Rect::new(0, 0, 32, 24)).into_px() } /// Saving omitted native params preserves their actual command behavior, not Photoshop's defaults. diff --git a/crates/engine/tests/convert_profile_atn.rs b/crates/engine/tests/convert_profile_atn.rs index b4d4ad09e3a..cf1f91b6dea 100644 --- a/crates/engine/tests/convert_profile_atn.rs +++ b/crates/engine/tests/convert_profile_atn.rs @@ -113,7 +113,7 @@ fn intent_fixture() -> Session { } fn rendered(s: &Session) -> Vec<[f32; 4]> { - photocraft_compose::flatten(&s.active().unwrap().doc).px + photocraft_compose::flatten(&s.active().unwrap().doc).into_px() } /// Assert saved typed fields and independent pixel/model effects, not just paired adapters. diff --git a/crates/engine/tests/convert_profile_options.rs b/crates/engine/tests/convert_profile_options.rs index 9c7d5feb4f3..a64d9c88f30 100644 --- a/crates/engine/tests/convert_profile_options.rs +++ b/crates/engine/tests/convert_profile_options.rs @@ -50,7 +50,7 @@ fn from_document(doc: Document, active: Option) -> Session { } fn composed(s: &Session) -> Vec<[f32; 4]> { - photocraft_compose::flatten(&s.active().unwrap().doc).px + photocraft_compose::flatten(&s.active().unwrap().doc).into_px() } /// The public source-first control must differ from conversion before flattening.