aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-06-19 00:28:47 +0800
committer魏曹先生 <1992414357@qq.com>2026-06-19 00:28:47 +0800
commit66aab5323663a2d5e3e2db562cf6ce60d9e2c5be (patch)
treed9217f528c7d56f07ec6ef8f92b71dc60148f2b7
parent0f7b2a50b05f38d886234ff6b031766c7af1dabb (diff)
Refactor macros `pack_err!` struct fields public
-rw-r--r--mingling_macros/src/pack_err.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/mingling_macros/src/pack_err.rs b/mingling_macros/src/pack_err.rs
index dd7b083..51bc656 100644
--- a/mingling_macros/src/pack_err.rs
+++ b/mingling_macros/src/pack_err.rs
@@ -81,7 +81,7 @@ pub fn pack_err(input: TokenStream) -> TokenStream {
#derive
pub struct #type_name {
/// The snake_case name of this error, automatically set at compile time.
- name: String,
+ pub name: String,
}
impl ::std::default::Default for #type_name {
@@ -118,9 +118,9 @@ pub fn pack_err(input: TokenStream) -> TokenStream {
#derive
pub struct #type_name {
/// The snake_case name of this error, automatically set at compile time.
- name: String,
+ pub name: String,
/// Additional context info for this error.
- info: #inner_type,
+ pub info: #inner_type,
}
impl #type_name {