Skip to content

Commit

Permalink
Fix wasm
Browse files Browse the repository at this point in the history
Signed-off-by: Heinz N. Gies <[email protected]>
  • Loading branch information
Licenser committed Aug 13, 2024
1 parent c528671 commit 3230c99
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)+)))
};

({}) => {
Expand Down Expand Up @@ -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)+)))
};

({}) => {
Expand Down

0 comments on commit 3230c99

Please sign in to comment.