Skip to content

1.0.21

Compare
Choose a tag to compare
@dtolnay dtolnay released this 07 Oct 00:00
· 331 commits to master since this release
1.0.21
f757a04
  • 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>,
    }