Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
cargo fmt --all
  • Loading branch information
tomusdrw committed Dec 9, 2020
commit d7faf55b45b32b1b2b4c715b217b7e372f34ceb7
8 changes: 2 additions & 6 deletions core-client/transports/src/transports/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,7 @@ where
}

/// Connects to a `Deref<Target = MetaIoHandler<Metadata + Default>`.
pub fn connect<TClient, THandler, TMetadata>(
handler: THandler
) -> (TClient, impl Future<Output = RpcResult<()>>)
pub fn connect<TClient, THandler, TMetadata>(handler: THandler) -> (TClient, impl Future<Output = RpcResult<()>>)
where
TClient: From<RpcChannel>,
TMetadata: Metadata + Default + Unpin,
Expand Down Expand Up @@ -202,9 +200,7 @@ where
}

/// Connects with pubsub.
pub fn connect_with_pubsub<TClient, THandler>(
handler: THandler
) -> (TClient, impl Future<Output = RpcResult<()>>)
pub fn connect_with_pubsub<TClient, THandler>(handler: THandler) -> (TClient, impl Future<Output = RpcResult<()>>)
where
TClient: From<RpcChannel>,
THandler: Deref<Target = MetaIoHandler<LocalMeta>> + Unpin,
Expand Down