From 66aab5323663a2d5e3e2db562cf6ce60d9e2c5be Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 19 Jun 2026 00:28:47 +0800 Subject: Refactor macros `pack_err!` struct fields public --- mingling_macros/src/pack_err.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mingling_macros/src') 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 { -- cgit