We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fd146b commit ac50501Copy full SHA for ac50501
http/src/lib.rs
@@ -119,8 +119,6 @@ error_chain! {
119
type CoreSender = mpsc::UnboundedSender<(Request, oneshot::Sender<Result<Vec<u8>>>)>;
120
type CoreReceiver = mpsc::UnboundedReceiver<(Request, oneshot::Sender<Result<Vec<u8>>>)>;
121
122
-/// Future type returned from `HttpTransport`.
123
-pub type HttpFuture<T, E> = Box<Future<Item = T, Error = E> + Send>;
124
125
/// The main struct of the HTTP transport implementation for
126
/// [`jsonrpc_client_core`](../jsonrpc_client_core).
@@ -339,7 +337,7 @@ impl HttpHandle {
339
337
}
340
338
341
impl Transport for HttpHandle {
342
- type Future = HttpFuture<Vec<u8>, Error>;
+ type Future = Box<Future<Item = Vec<u8>, Error = Self::Error> + Send>;
343
type Error = Error;
344
345
fn get_next_id(&mut self) -> u64 {
0 commit comments