@@ -54,7 +54,7 @@ pub(crate) fn flatten(
5454 let ( sub_structs, sub_enums) = flatten (
5555 root_name. clone ( ) ,
5656 unique_id_count. clone ( ) ,
57- DeriveBox :: Struct ( v. clone ( ) ) ,
57+ DeriveBox :: Struct ( Box :: new ( v. clone ( ) ) ) ,
5858 ) ?;
5959
6060 structs. extend ( sub_structs) ;
@@ -95,7 +95,7 @@ pub(crate) fn flatten(
9595 let ( sub_structs, sub_enums) = flatten (
9696 root_name. clone ( ) ,
9797 unique_id_count. clone ( ) ,
98- DeriveBox :: Enum ( v. clone ( ) ) ,
98+ DeriveBox :: Enum ( Box :: new ( v. clone ( ) ) ) ,
9999 ) ?;
100100
101101 structs. extend ( sub_structs) ;
@@ -197,7 +197,7 @@ pub(crate) fn flatten(
197197 let ( sub_structs, sub_enums) = flatten (
198198 root_name. clone ( ) ,
199199 unique_id_count. clone ( ) ,
200- DeriveBox :: Struct ( v. clone ( ) ) ,
200+ DeriveBox :: Struct ( Box :: new ( v. clone ( ) ) ) ,
201201 ) ?;
202202
203203 structs. extend ( sub_structs) ;
@@ -241,7 +241,7 @@ pub(crate) fn flatten(
241241 let ( sub_structs, sub_enums) = flatten (
242242 root_name. clone ( ) ,
243243 unique_id_count. clone ( ) ,
244- DeriveBox :: Enum ( v. clone ( ) ) ,
244+ DeriveBox :: Enum ( Box :: new ( v. clone ( ) ) ) ,
245245 ) ?;
246246
247247 structs. extend ( sub_structs) ;
@@ -311,7 +311,7 @@ pub(crate) fn flatten(
311311 let ( sub_structs, sub_enums) = flatten (
312312 root_name. clone ( ) ,
313313 unique_id_count. clone ( ) ,
314- DeriveBox :: Struct ( v. clone ( ) ) ,
314+ DeriveBox :: Struct ( Box :: new ( v. clone ( ) ) ) ,
315315 ) ?;
316316
317317 structs. extend ( sub_structs) ;
@@ -362,7 +362,7 @@ pub(crate) fn flatten(
362362 let ( sub_structs, sub_enums) = flatten (
363363 root_name. clone ( ) ,
364364 unique_id_count. clone ( ) ,
365- DeriveBox :: Enum ( v. clone ( ) ) ,
365+ DeriveBox :: Enum ( Box :: new ( v. clone ( ) ) ) ,
366366 ) ?;
367367
368368 structs. extend ( sub_structs) ;
0 commit comments