make Error fields pub

This commit is contained in:
Andrey Tkachenko 2023-04-05 15:29:31 +04:00
parent 232e82cd30
commit 5da492cc7e
3 changed files with 5 additions and 5 deletions

View File

@ -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"

View File

@ -1,6 +1,6 @@
[package]
name = "ctxerr_derive"
version = "0.5.0"
version = "0.5.1"
authors = ["Andrey Tkachenko <andrey@aidev.ru>"]
repository = "https://github.com/andreytkachenko/ctxerr.git"
keywords = ["error", "handling", "thiserror", "context", "backtrace"]

View File

@ -41,9 +41,9 @@ pub fn ctxerr(
#[derive(ctxerr::thiserror::Error #(, #attrs)*)]
pub struct #base_name {
kind: #name_ident,
backtrace: Option<std::backtrace::Backtrace>,
location: Option<&'static core::panic::Location<'static>>,
pub kind: #name_ident,
pub backtrace: Option<std::backtrace::Backtrace>,
pub location: Option<&'static core::panic::Location<'static>>,
}
impl std::fmt::Debug for #base_name {