From ce776f0cb9024e5ee9ffb5d64855873cb87a0925 Mon Sep 17 00:00:00 2001 From: hnoerenberg Date: Sat, 21 Nov 2026 22:35:56 +0100 Subject: [PATCH] fix(type): adapt the corrupt-size mask test to the engine's doc accessor The merged main no longer lets a caller assign through DocState: it takes no DerefMut, and the test helper wrote st.doc directly, so the ui-egui lib test target failed to build (E0594) and the CI archive step with it. Write through doc_mut(), the way main's own type_tool canvas test does. --- .../src/tools/type_tool/mask_active_layer_style_tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-egui/src/tools/type_tool/mask_active_layer_style_tests.rs b/crates/ui-egui/src/tools/type_tool/mask_active_layer_style_tests.rs index 1b0320a3fc..1d946637b0 100644 --- a/crates/ui-egui/src/tools/type_tool/mask_active_layer_style_tests.rs +++ b/crates/ui-egui/src/tools/type_tool/mask_active_layer_style_tests.rs @@ -282,7 +282,7 @@ fn corrupt_layer_size(app: &mut PhotocraftApp, id: LayerId, bad: f32) { r.style.size_pt = bad; } } - st.doc = std::sync::Arc::new(doc); + *st.doc_mut() = std::sync::Arc::new(doc); st.revision += 1; }