mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-19 23:16:46 +00:00
display
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use std::mem::transmute;
|
||||
use std::{fmt, mem::transmute};
|
||||
|
||||
use bytemuck::{Pod, Zeroable};
|
||||
use solana_program::keccak::{Hash as KeccakHash, HASH_BYTES};
|
||||
@@ -23,4 +23,10 @@ impl From<Hash> for KeccakHash {
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for Hash {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "{}", bs58::encode(self.0).into_string())
|
||||
}
|
||||
}
|
||||
|
||||
impl_to_bytes!(Hash);
|
||||
|
||||
Reference in New Issue
Block a user