diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-04-20 14:17:08 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-04-20 14:17:08 +0800 |
| commit | 988e1275f527e6b954bee9a5ca038f25a19c6d45 (patch) | |
| tree | 299e6e387ad8f902f872c8cdbdfdc4250fec2724 /mingling_macros/src | |
| parent | 491ae5956242eccfa4cafd3cc34d66f10c26cd22 (diff) | |
Register type in Groupped derive macro
Diffstat (limited to 'mingling_macros/src')
| -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 980c08a..508092c 100644 --- a/mingling_macros/src/groupped.rs +++ b/mingling_macros/src/groupped.rs @@ -38,6 +38,8 @@ pub fn derive_groupped(input: TokenStream) -> TokenStream { // Generate the Groupped trait implementation let expanded = quote! { + ::mingling::macros::register_type!(#struct_name); + impl ::mingling::Groupped<#group_ident> for #struct_name { fn member_id() -> #group_ident { #group_ident::#struct_name |
