Make const
This commit is contained in:
parent
96ccd8e583
commit
d462a4372f
|
@ -27,7 +27,7 @@ impl Field {
|
||||||
|
|
||||||
/// Convert to big-endian 32-byte array.
|
/// Convert to big-endian 32-byte array.
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn to_be_bytes(&self) -> [u8; 32] {
|
pub const fn to_be_bytes(&self) -> [u8; 32] {
|
||||||
self.0
|
self.0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue