diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-04-20 14:06:38 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-04-20 14:06:38 +0800 |
| commit | 6f66a3158f4a4b2bca42ec385abefbf4011618cc (patch) | |
| tree | 2f5193e9130c6477e413d90966babc2d60721182 /mingling_macros/src/groupped.rs | |
| parent | 2036fb58275d7fddad9c27bcceb780e8f715e5c0 (diff) | |
Move type registration to pack! and Groupped macros
Diffstat (limited to 'mingling_macros/src/groupped.rs')
| -rw-r--r-- | mingling_macros/src/groupped.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mingling_macros/src/groupped.rs b/mingling_macros/src/groupped.rs index 5e0c3e9..980c08a 100644 --- a/mingling_macros/src/groupped.rs +++ b/mingling_macros/src/groupped.rs @@ -70,6 +70,8 @@ pub fn derive_groupped_serialize(input: TokenStream) -> TokenStream { #[derive(serde::Serialize)] #input_parsed + ::mingling::macros::register_type!(#struct_name); + impl ::mingling::Groupped<#group_ident> for #struct_name { fn member_id() -> #group_ident { #group_ident::#struct_name |
