diff options
| -rw-r--r-- | talpid-ipc/src/lib.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/talpid-ipc/src/lib.rs b/talpid-ipc/src/lib.rs index 3ef9bf4733..9875bb198e 100644 --- a/talpid-ipc/src/lib.rs +++ b/talpid-ipc/src/lib.rs @@ -15,6 +15,7 @@ extern crate url; use jsonrpc_core::{MetaIoHandler, Metadata}; use jsonrpc_ws_server::{MetaExtractor, NoopExtractor, Server, ServerBuilder}; +use std::fmt; use std::net::{IpAddr, Ipv4Addr, SocketAddr}; @@ -79,6 +80,17 @@ impl IpcServer { } } +// FIXME: This custom impl is because `Server` does not implement `Debug` yet: +// https://github.com/paritytech/jsonrpc/pull/195 +impl fmt::Debug for IpcServer { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + f.debug_struct("IpcServer") + .field("address", &self.address) + .finish() + } +} + + #[derive(Clone)] pub struct CloseHandle(jsonrpc_ws_server::CloseHandle); |
