File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ use crate::env;
93
93
use crate :: ffi:: c_void;
94
94
use crate :: fmt;
95
95
use crate :: panic:: UnwindSafe ;
96
- use crate :: sync:: atomic:: { AtomicUsize , Ordering :: Relaxed } ;
96
+ use crate :: sync:: atomic:: { AtomicU8 , Ordering :: Relaxed } ;
97
97
use crate :: sync:: LazyLock ;
98
98
use crate :: sys_common:: backtrace:: { lock, output_filename, set_image_base} ;
99
99
@@ -254,7 +254,7 @@ impl Backtrace {
254
254
// Cache the result of reading the environment variables to make
255
255
// backtrace captures speedy, because otherwise reading environment
256
256
// variables every time can be somewhat slow.
257
- static ENABLED : AtomicUsize = AtomicUsize :: new ( 0 ) ;
257
+ static ENABLED : AtomicU8 = AtomicU8 :: new ( 0 ) ;
258
258
match ENABLED . load ( Relaxed ) {
259
259
0 => { }
260
260
1 => return false ,
@@ -267,7 +267,7 @@ impl Backtrace {
267
267
Err ( _) => false ,
268
268
} ,
269
269
} ;
270
- ENABLED . store ( enabled as usize + 1 , Relaxed ) ;
270
+ ENABLED . store ( enabled as u8 + 1 , Relaxed ) ;
271
271
enabled
272
272
}
273
273
You can’t perform that action at this time.
0 commit comments