Skip to content

Commit 5e6d0f1

Browse files
authored
Switch to associated constant
1 parent 9cf552e commit 5e6d0f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

secp256k1-sys/src/types.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ impl AlignedType {
4040
pub fn zeroed() -> Self {
4141
AlignedType([0u8; 16])
4242
}
43-
}
4443

45-
/// A static zeroed out AlignedType for use in static assignments of [AlignedType; _]
46-
pub static ZERO_ALIGNED: AlignedType = AlignedType([0u8; 16]);
44+
/// A static zeroed out AlignedType for use in static assignments of [AlignedType; _]
45+
const ZERO: AlignedType = AlignedType([0u8; 16]);
46+
}
4747

4848
#[cfg(all(feature = "std", not(rust_secp_no_symbol_renaming)))]
4949
pub(crate) const ALIGN_TO: usize = mem::align_of::<AlignedType>();

0 commit comments

Comments
 (0)