aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrinity Pointard <trinity.pointard@gmail.com>2021-04-06 02:54:00 +0200
committerTrinity Pointard <trinity.pointard@gmail.com>2021-04-06 02:54:05 +0200
commitb3b0b20d722bd001ef971b029a2165a2407fec83 (patch)
tree6bce9b059fd59b6da8fae5467acf8a7e25ea57e7
parent47d0aee9f807e0ded10a01d045a8930ff112224b (diff)
downloadgarage-b3b0b20d722bd001ef971b029a2165a2407fec83.tar.gz
garage-b3b0b20d722bd001ef971b029a2165a2407fec83.zip
run fmt
-rw-r--r--src/api/s3_put.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/api/s3_put.rs b/src/api/s3_put.rs
index f5607c9f..d2702940 100644
--- a/src/api/s3_put.rs
+++ b/src/api/s3_put.rs
@@ -302,8 +302,14 @@ impl BodyChunker {
if self.buf.len() == 0 {
Ok(None)
} else {
- let mut iter = FastCDC::with_eof(self.buf.make_contiguous(), self.min_block_size, self.avg_block_size, self.max_block_size, self.read_all);
- if let Some(Chunk {length, ..}) = iter.next() {
+ let mut iter = FastCDC::with_eof(
+ self.buf.make_contiguous(),
+ self.min_block_size,
+ self.avg_block_size,
+ self.max_block_size,
+ self.read_all,
+ );
+ if let Some(Chunk { length, .. }) = iter.next() {
let block = self.buf.drain(..length).collect::<Vec<u8>>();
Ok(Some(block))
} else {