sdk: support Pubkey::to_bytes as constexpr (#220)
This commit is contained in:
parent
91bff85ffc
commit
9b16df25d3
|
@ -631,7 +631,7 @@ impl Pubkey {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn to_bytes(self) -> [u8; 32] {
|
||||
pub const fn to_bytes(self) -> [u8; 32] {
|
||||
self.0
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue