summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 061b431..e8f9e95 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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>,
}
}
}