mirror of
https://github.com/OMGeeky/tarpc.git
synced 2026-01-09 21:13:32 +01:00
Derive debug rather than manually impl
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user