1
2
3
4
5
6
7
8
9
10
use crate::bytes_to_hex;
use crate::HashType;
use crate::HoloHash;

impl<T: HashType> std::fmt::Display for HoloHash<T> {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        f.write_fmt(format_args!("0x{}", bytes_to_hex(self.get_raw_39(), false)))?;
        Ok(())
    }
}