File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ color-backtrace = "0.4.0"
18
18
backtrace = " 0.3"
19
19
indenter = " 0.2.0"
20
20
ansi_term = " 0.12.1"
21
- color-spantrace = { version = " 0.1" , optional = true }
21
+ color-spantrace = { version = " 0.1.1" , optional = true }
22
+
22
23
23
24
[dev-dependencies ]
24
25
tracing-subscriber = " 0.2.5"
Original file line number Diff line number Diff line change @@ -178,7 +178,10 @@ pub struct Context {
178
178
impl EyreContext for Context {
179
179
#[ allow( unused_variables) ]
180
180
fn default ( error : & ( dyn std:: error:: Error + ' static ) ) -> Self {
181
- let backtrace = if std:: env:: var ( "RUST_LIB_BACKTRACE" ) . is_ok ( ) {
181
+ let backtrace = if std:: env:: var ( "RUST_LIB_BACKTRACE" )
182
+ . or_else ( |_| std:: env:: var ( "RUST_BACKTRACE" ) )
183
+ . is_ok ( )
184
+ {
182
185
Some ( Backtrace :: new ( ) )
183
186
} else {
184
187
None
You can’t perform that action at this time.
0 commit comments