summaryrefslogtreecommitdiffstats
path: root/ipfs-api
diff options
context:
space:
mode:
authorFerris Tseng <ferristseng@fastmail.fm>2019-10-14 16:06:12 -0400
committerFerris Tseng <ferristseng@fastmail.fm>2019-10-14 16:06:12 -0400
commite4a1d4bf78ca07227ecc41d715dd9397a9a7ee3e (patch)
tree6be73b7200494f5012d4d3e7039687c102585c22 /ipfs-api
parent0d816372dcef185fe3def9b6e4ebd3f35ac8c2b9 (diff)
add dyn to types for actix feature
Diffstat (limited to 'ipfs-api')
-rw-r--r--ipfs-api/src/client.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipfs-api/src/client.rs b/ipfs-api/src/client.rs
index 994ab99..5d44c7c 100644
--- a/ipfs-api/src/client.rs
+++ b/ipfs-api/src/client.rs
@@ -41,14 +41,14 @@ use tokio_codec::{Decoder, FramedRead};
/// A response returned by the HTTP client.
///
#[cfg(feature = "actix")]
-type AsyncResponse<T> = Box<Future<Item = T, Error = Error> + 'static>;
+type AsyncResponse<T> = Box<dyn Future<Item = T, Error = Error> + 'static>;
#[cfg(feature = "hyper")]
type AsyncResponse<T> = Box<dyn Future<Item = T, Error = Error> + Send + 'static>;
/// A future that returns a stream of responses.
///
#[cfg(feature = "actix")]
-type AsyncStreamResponse<T> = Box<Stream<Item = T, Error = Error> + 'static>;
+type AsyncStreamResponse<T> = Box<dyn Stream<Item = T, Error = Error> + 'static>;
#[cfg(feature = "hyper")]
type AsyncStreamResponse<T> = Box<dyn Stream<Item = T, Error = Error> + Send + 'static>;