aboutsummaryrefslogtreecommitdiff
path: root/mingling_macros/src/pack.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-04-29 16:33:13 +0800
committer魏曹先生 <1992414357@qq.com>2026-04-29 16:33:13 +0800
commit376ed696ec2ff676a22bafa44c63e2c6fe606647 (patch)
treec8c30fbf054f9dd50eb858386d208f9147e20dbc /mingling_macros/src/pack.rs
parent4fb83212cefa1a7818d8531fdfe937db10203471 (diff)
Use small integer repr for gen_program! enum
Remove the default __FallBack variant and Debug derive from pack types.
Diffstat (limited to 'mingling_macros/src/pack.rs')
-rw-r--r--mingling_macros/src/pack.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/mingling_macros/src/pack.rs b/mingling_macros/src/pack.rs
index 9da16de..f7bdfe3 100644
--- a/mingling_macros/src/pack.rs
+++ b/mingling_macros/src/pack.rs
@@ -79,7 +79,6 @@ pub fn pack(input: TokenStream) -> TokenStream {
// Generate the struct definition
#[cfg(not(feature = "general_renderer"))]
let struct_def = quote! {
- #[derive(Debug)]
pub struct #type_name {
pub(crate) inner: #inner_type,
}
@@ -87,7 +86,7 @@ pub fn pack(input: TokenStream) -> TokenStream {
#[cfg(feature = "general_renderer")]
let struct_def = quote! {
- #[derive(Debug, serde::Serialize)]
+ #[derive(serde::Serialize)]
pub struct #type_name {
pub(crate) inner: #inner_type,
}