From 7a66cd1ae17ac301ec77f8ec8c123375ded26ec1 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 17 Jun 2021 20:53:20 -0700 Subject: [PATCH] Implement Display for ConnectionId --- zed-rpc/src/peer.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zed-rpc/src/peer.rs b/zed-rpc/src/peer.rs index 674ccb43ccdae51da33d78c3433a8b7a73baa072..dec6ef95334b29ff0488627681c1dff3a3f7fcb7 100644 --- a/zed-rpc/src/peer.rs +++ b/zed-rpc/src/peer.rs @@ -12,6 +12,7 @@ use postage::{ use std::{ any::TypeId, collections::{HashMap, HashSet}, + fmt, future::Future, pin::Pin, sync::{ @@ -294,6 +295,12 @@ impl Peer { } } +impl fmt::Display for ConnectionId { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.0.fmt(f) + } +} + #[cfg(test)] mod tests { use super::*;