File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11#[ cfg( feature = "std" ) ]
2- pub ( crate ) use std:: backtrace:: { Backtrace , BacktraceStatus } ;
2+ pub ( crate ) use std:: backtrace:: Backtrace ;
33
44#[ cfg( not( feature = "std" ) ) ]
55pub ( crate ) enum Backtrace { }
66
77#[ cfg( feature = "std" ) ]
88macro_rules! backtrace {
99 ( ) => {
10- Some ( crate :: backtrace:: Backtrace :: capture( ) )
10+ Some ( std :: backtrace:: Backtrace :: capture( ) )
1111 } ;
1212}
1313
Original file line number Diff line number Diff line change @@ -411,7 +411,7 @@ impl Error {
411411 /// anyhow = { version = "1.0", features = ["backtrace"] }
412412 /// ```
413413 #[ cfg( feature = "std" ) ]
414- pub fn backtrace ( & self ) -> & std :: backtrace :: Backtrace {
414+ pub fn backtrace ( & self ) -> & Backtrace {
415415 unsafe { ErrorImpl :: backtrace ( self . inner . by_ref ( ) ) }
416416 }
417417
Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ impl ErrorImpl {
4242
4343 #[ cfg( feature = "std" ) ]
4444 {
45- use crate :: backtrace:: BacktraceStatus ;
4645 use alloc:: string:: ToString ;
46+ use std:: backtrace:: BacktraceStatus ;
4747
4848 let backtrace = unsafe { Self :: backtrace ( this) } ;
4949 if let BacktraceStatus :: Captured = backtrace. status ( ) {
You can’t perform that action at this time.
0 commit comments