From ca86137d0f35c6a64bd7473afb7bc17d9fd655cb Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Thu, 20 Mar 2025 18:18:50 +0100 Subject: [PATCH] :bug: Fix wasm state warning --- render-wasm/src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/render-wasm/src/main.rs b/render-wasm/src/main.rs index 7f862843ac..8206103cd5 100644 --- a/render-wasm/src/main.rs +++ b/render-wasm/src/main.rs @@ -138,11 +138,9 @@ pub extern "C" fn use_shape(a: u32, b: u32, c: u32, d: u32) { #[no_mangle] pub unsafe extern "C" fn set_parent(a: u32, b: u32, c: u32, d: u32) { - with_state!(state, { + with_current_shape!(state, |shape: &mut Shape| { let id = uuid_from_u32_quartet(a, b, c, d); - with_current_shape!(state, |shape: &mut Shape| { - shape.set_parent(id); - }); + shape.set_parent(id); }); }