Merge pull request #1961 from TheBlueMatt/2023-01-expose-hist-buckets
[rust-lightning] / lightning / src / routing / gossip.rs
index 950782d46f665bae2e0dd3baff42633456e3ec2d..363f067b1aa6050b3ddf495e84d042f64ebfad6f 100644 (file)
@@ -84,6 +84,11 @@ impl fmt::Debug for NodeId {
                write!(f, "NodeId({})", log_bytes!(self.0))
        }
 }
+impl fmt::Display for NodeId {
+       fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+               write!(f, "{}", log_bytes!(self.0))
+       }
+}
 
 impl core::hash::Hash for NodeId {
        fn hash<H: core::hash::Hasher>(&self, hasher: &mut H) {