diff options
Diffstat (limited to 'ipfs-api/src/client.rs')
-rw-r--r-- | ipfs-api/src/client.rs | 4 |
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>; |