We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cf552e commit 5e6d0f1Copy full SHA for 5e6d0f1
secp256k1-sys/src/types.rs
@@ -40,10 +40,10 @@ impl AlignedType {
40
pub fn zeroed() -> Self {
41
AlignedType([0u8; 16])
42
}
43
-}
44
45
-/// A static zeroed out AlignedType for use in static assignments of [AlignedType; _]
46
-pub static ZERO_ALIGNED: AlignedType = AlignedType([0u8; 16]);
+ /// A static zeroed out AlignedType for use in static assignments of [AlignedType; _]
+ const ZERO: AlignedType = AlignedType([0u8; 16]);
+}
47
48
#[cfg(all(feature = "std", not(rust_secp_no_symbol_renaming)))]
49
pub(crate) const ALIGN_TO: usize = mem::align_of::<AlignedType>();
0 commit comments