From 3230c99c207606600d7be471f3aaa09160e0e973 Mon Sep 17 00:00:00 2001 From: "Heinz N. Gies" Date: Tue, 13 Aug 2024 13:17:19 +0200 Subject: [PATCH] Fix wasm Signed-off-by: Heinz N. Gies --- src/macros.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/macros.rs b/src/macros.rs index d921990d..17018489 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -657,11 +657,11 @@ macro_rules! json_internal_owned { }; ([]) => { - $crate::value::owned::Value::Array(json_internal_vec![]) + $crate::value::owned::Value::Array(Box::new(json_internal_vec![])) }; ([ $($tt:tt)+ ]) => { - $crate::value::owned::Value::Array(json_internal_owned!(@array [] $($tt)+)) + $crate::value::owned::Value::Array(Box::new(json_internal_owned!(@array [] $($tt)+))) }; ({}) => { @@ -1144,11 +1144,11 @@ macro_rules! json_internal_borrowed { }; ([]) => { - $crate::value::borrowed::Value::Array(json_internal_vec![]) + $crate::value::borrowed::Value::Array(Box::new(json_internal_vec![])) }; ([ $($tt:tt)+ ]) => { - $crate::value::borrowed::Value::Array(json_internal_borrowed!(@array [] $($tt)+)) + $crate::value::borrowed::Value::Array(Box::new(json_internal_borrowed!(@array [] $($tt)+))) }; ({}) => {