Make const

This commit is contained in:
Remco Bloemen 2022-04-19 10:38:30 +02:00
parent 96ccd8e583
commit d462a4372f
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ impl Field {
/// Convert to big-endian 32-byte array.
#[must_use]
pub fn to_be_bytes(&self) -> [u8; 32] {
pub const fn to_be_bytes(&self) -> [u8; 32] {
self.0
}
}