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.
[Zero]Init
AtomicBool
1 parent 4ad77ae commit e4d1696Copy full SHA for e4d1696
src/constance/src/utils/init.rs
@@ -77,8 +77,9 @@ impl_init! {
77
isize => 0,
78
f32 => 0.0,
79
f64 => 0.0,
80
+ atomic::AtomicBool => atomic::AtomicBool::new(false),
81
atomic::AtomicU8 => atomic::AtomicU8::new(0),
- atomic::AtomicU16=> atomic::AtomicU16::new(0),
82
+ atomic::AtomicU16 => atomic::AtomicU16::new(0),
83
atomic::AtomicU32 => atomic::AtomicU32::new(0),
84
atomic::AtomicU64 => atomic::AtomicU64::new(0),
85
atomic::AtomicUsize => atomic::AtomicUsize::new(0),
src/constance/src/utils/zeroinit.rs
@@ -51,6 +51,7 @@ impl_zero_init! {
51
isize,
52
f32,
53
f64,
54
+ atomic::AtomicBool,
55
atomic::AtomicU8,
56
atomic::AtomicU16,
57
atomic::AtomicU32,
0 commit comments