1.0.21
-
Support capturing backtraces inside of Arc from a From impl, which makes it possible for errors having backtraces to be clonable (#102)
use std::backtrace::Backtrace; use std::sync::Arc; use thiserror::Error; #[derive(Error, Debug, Clone)] #[error("...")] pub struct ClonableErrorWithBacktrace { #[from] source: Inner, #[backtrace] backtrace: Arc<Backtrace>, }