1
2
3
4
5
6
7
8
9
10
11
12
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{}",
            holochain_util::hex::bytes_to_hex(self.get_raw_39(), false)
        ))?;
        Ok(())
    }
}