aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/api/s3/put.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/api/s3/put.rs b/src/api/s3/put.rs
index e6698bfa..dc0530df 100644
--- a/src/api/s3/put.rs
+++ b/src/api/s3/put.rs
@@ -434,12 +434,7 @@ impl<S: Stream<Item = Result<Bytes, Error>> + Unpin> StreamChunker<S> {
}
}
Ok(Some(
- slices
- .iter()
- .map(|x| &x[..])
- .collect::<Vec<_>>()
- .concat()
- .into(),
+ slices.iter().map(|x| &x[..]).collect::<Vec<_>>().concat(),
))
}
}