diff options
author | Atul Bhosale <atul1bhosale@gmail.com> | 2019-09-15 21:37:41 +0700 |
---|---|---|
committer | Doug Tangren <d.tangren@gmail.com> | 2019-09-15 23:37:41 +0900 |
commit | f10534b3179dcbc2667b1c6aed3039a5f3a40f0f (patch) | |
tree | 53455630f2430e3ab9a369976425f5be055d6dff /src/lib.rs | |
parent | 63ef2b3b66616055535d9ad43253de1df83ab527 (diff) |
Use 'dyn' since trait objects without an explicit 'dyn' are deprecated (#194)
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -167,9 +167,9 @@ impl<'a> Images<'a> { .map_err(Error::from) }) .flatten(), - ) as Box<Stream<Item = Value, Error = Error> + Send>, + ) as Box<dyn Stream<Item = Value, Error = Error> + Send>, Err(e) => Box::new(futures::future::err(Error::IO(e)).into_stream()) - as Box<Stream<Item = Value, Error = Error> + Send>, + as Box<dyn Stream<Item = Value, Error = Error> + Send>, } } @@ -250,7 +250,7 @@ impl<'a> Images<'a> { /// source can be uncompressed on compressed via gzip, bzip2 or xz pub fn import( self, - mut tarball: Box<Read>, + mut tarball: Box<dyn Read>, ) -> impl Stream<Item = Value, Error = Error> { let mut bytes = Vec::new(); @@ -267,9 +267,9 @@ impl<'a> Images<'a> { .map_err(Error::from) .into_future() }), - ) as Box<Stream<Item = Value, Error = Error> + Send>, + ) as Box<dyn Stream<Item = Value, Error = Error> + Send>, Err(e) => Box::new(futures::future::err(Error::IO(e)).into_stream()) - as Box<Stream<Item = Value, Error = Error> + Send>, + as Box<dyn Stream<Item = Value, Error = Error> + Send>, } } } |