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 <[email protected]>
This commit is contained in:
David MannandClaude Opus 5.5 committed 2026-11-02 14:09:34 +01:00
1 parent 4c95a2d4bd
commit e155cf85bf
3 files changed
+3 -3

No files matched your search

@@ -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.
+1 -1
View File
@@ -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.
@@ -50,7 +50,7 @@ fn from_document(doc: Document, active: Option<LayerId>) -> 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.