We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5ae19f commit 12b25ddCopy full SHA for 12b25dd
src/error.rs
@@ -1,6 +1,7 @@
1
//! Error types
2
3
use std::{
4
+ backtrace::Backtrace,
5
fmt::{self, Debug, Display},
6
ops::Deref,
7
};
@@ -59,7 +60,6 @@ where
59
60
source: Option<BoxError>,
61
62
/// Backtrace where error occurred
- #[cfg(feature = "backtrace")]
63
backtrace: Option<Backtrace>,
64
}
65
@@ -72,8 +72,7 @@ where
72
Context {
73
kind,
74
source,
75
76
- backtrace: Some(Backtrace::new()),
+ backtrace: Some(Backtrace::capture()),
77
78
79
@@ -83,7 +82,6 @@ where
83
82
84
85
/// Get the backtrace associated with this error (if available)
86
87
pub fn backtrace(&self) -> Option<&Backtrace> {
88
self.backtrace.as_ref()
89
0 commit comments