This commit is contained in:
Martin Algesten
2018-07-01 10:19:40 +02:00
parent ca533bc518
commit 03928a05c5
3 changed files with 8 additions and 7 deletions

View File

@@ -19,7 +19,7 @@ pub enum Payload {
Text(String, String),
#[cfg(feature = "json")]
JSON(SerdeValue),
Reader(Box<Read + 'static>),
Reader(Box<dyn Read + 'static>),
}
impl ::std::fmt::Debug for Payload {
@@ -42,11 +42,11 @@ impl Default for Payload {
pub struct SizedReader {
pub size: Option<usize>,
pub reader: Box<Read + 'static>,
pub reader: Box<dyn Read + 'static>,
}
impl SizedReader {
fn new(size: Option<usize>, reader: Box<Read + 'static>) -> Self {
fn new(size: Option<usize>, reader: Box<dyn Read + 'static>) -> Self {
SizedReader { size, reader }
}
}