diff --git a/Cargo.toml b/Cargo.toml index 45cd145..11aaf5b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,5 +15,5 @@ resolver = "2" members = ["derive"] [dependencies] -ctxerr_derive = {version = "0.5.0", path = "derive"} +ctxerr_derive = {version = "0.5.1", path = "derive"} thiserror = "1.0.40" diff --git a/derive/Cargo.toml b/derive/Cargo.toml index e8e1a22..9cfe162 100644 --- a/derive/Cargo.toml +++ b/derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctxerr_derive" -version = "0.5.0" +version = "0.5.1" authors = ["Andrey Tkachenko "] repository = "https://github.com/andreytkachenko/ctxerr.git" keywords = ["error", "handling", "thiserror", "context", "backtrace"] diff --git a/derive/src/lib.rs b/derive/src/lib.rs index c209d0d..1ca7505 100644 --- a/derive/src/lib.rs +++ b/derive/src/lib.rs @@ -41,9 +41,9 @@ pub fn ctxerr( #[derive(ctxerr::thiserror::Error #(, #attrs)*)] pub struct #base_name { - kind: #name_ident, - backtrace: Option, - location: Option<&'static core::panic::Location<'static>>, + pub kind: #name_ident, + pub backtrace: Option, + pub location: Option<&'static core::panic::Location<'static>>, } impl std::fmt::Debug for #base_name {