make Error fields pub
This commit is contained in:
parent
232e82cd30
commit
5da492cc7e
@ -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"
|
||||
|
@ -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"]
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user