base58 inline in Debug

This commit is contained in:
folex 2020-04-30 16:48:51 +03:00
parent c9da72704e
commit 082953e34c

View File

@ -46,7 +46,7 @@ pub struct PeerId {
impl fmt::Debug for PeerId { impl fmt::Debug for PeerId {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_tuple("PeerId") f.debug_tuple("PeerId")
.field(&self.to_base58()) .field(&self.to_string())
.finish() .finish()
} }
} }