Skip to content

Commit ac50501

Browse files
committed
Remove HttpFuture alias
1 parent 6fd146b commit ac50501

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

http/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ error_chain! {
119119
type CoreSender = mpsc::UnboundedSender<(Request, oneshot::Sender<Result<Vec<u8>>>)>;
120120
type CoreReceiver = mpsc::UnboundedReceiver<(Request, oneshot::Sender<Result<Vec<u8>>>)>;
121121

122-
/// Future type returned from `HttpTransport`.
123-
pub type HttpFuture<T, E> = Box<Future<Item = T, Error = E> + Send>;
124122

125123
/// The main struct of the HTTP transport implementation for
126124
/// [`jsonrpc_client_core`](../jsonrpc_client_core).
@@ -339,7 +337,7 @@ impl HttpHandle {
339337
}
340338

341339
impl Transport for HttpHandle {
342-
type Future = HttpFuture<Vec<u8>, Error>;
340+
type Future = Box<Future<Item = Vec<u8>, Error = Self::Error> + Send>;
343341
type Error = Error;
344342

345343
fn get_next_id(&mut self) -> u64 {

0 commit comments

Comments
 (0)