From 5e6d0f1363438e24aceae46c3e0a7e5ce1027847 Mon Sep 17 00:00:00 2001 From: Jonathan Underwood Date: Thu, 23 Dec 2021 12:30:43 -0700 Subject: [PATCH] Switch to associated constant --- secp256k1-sys/src/types.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/secp256k1-sys/src/types.rs b/secp256k1-sys/src/types.rs index 8746594..aa397c7 100644 --- a/secp256k1-sys/src/types.rs +++ b/secp256k1-sys/src/types.rs @@ -40,10 +40,10 @@ impl AlignedType { pub fn zeroed() -> Self { AlignedType([0u8; 16]) } -} -/// A static zeroed out AlignedType for use in static assignments of [AlignedType; _] -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]); +} #[cfg(all(feature = "std", not(rust_secp_no_symbol_renaming)))] pub(crate) const ALIGN_TO: usize = mem::align_of::();