Implement Display for ConnectionId

Max Brunsfeld created

Change summary

zed-rpc/src/peer.rs | 7 +++++++
1 file changed, 7 insertions(+)

Detailed changes

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::*;