Switch to associated constant
This commit is contained in:
parent
9cf552e240
commit
5e6d0f1363
|
@ -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::<AlignedType>();
|
||||
|
|
Loading…
Reference in New Issue