diff options
Diffstat (limited to 'mingling_macros/src/pack_err.rs')
| -rw-r--r-- | mingling_macros/src/pack_err.rs | 6 |
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 { |
