From ac50501c690baa3c31b4bc4ab65081548d9f5f72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20F=C3=A4rnstrand?= Date: Thu, 8 Mar 2018 13:13:30 +0100 Subject: [PATCH] Remove HttpFuture alias --- http/src/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/http/src/lib.rs b/http/src/lib.rs index 140d37b..d2f99bf 100644 --- a/http/src/lib.rs +++ b/http/src/lib.rs @@ -119,8 +119,6 @@ error_chain! { type CoreSender = mpsc::UnboundedSender<(Request, oneshot::Sender>>)>; type CoreReceiver = mpsc::UnboundedReceiver<(Request, oneshot::Sender>>)>; -/// Future type returned from `HttpTransport`. -pub type HttpFuture = Box + Send>; /// The main struct of the HTTP transport implementation for /// [`jsonrpc_client_core`](../jsonrpc_client_core). @@ -339,7 +337,7 @@ impl HttpHandle { } impl Transport for HttpHandle { - type Future = HttpFuture, Error>; + type Future = Box, Error = Self::Error> + Send>; type Error = Error; fn get_next_id(&mut self) -> u64 {