Derive debug rather than manually impl

This commit is contained in:
Tim Kuehn
2017-02-25 01:56:25 -08:00
parent d0d65c413a
commit 073bc25e18

View File

@@ -590,17 +590,11 @@ macro_rules! service {
/// The client stub that makes RPC calls to the server. Exposes a blocking interface.
#[allow(unused)]
#[derive(Clone)]
#[derive(Clone, Debug)]
pub struct SyncClient {
inner: tarpc_service_SyncClient__,
}
impl ::std::fmt::Debug for SyncClient {
fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
write!(formatter, "SyncClient {{ inner: {:?}, .. }}", self.inner)
}
}
impl $crate::client::sync::ClientExt for SyncClient {
fn connect<A>(addr_: A, options_: $crate::client::Options) -> ::std::io::Result<Self>
where A: ::std::net::ToSocketAddrs,