From ae4982c309a72b3d6fa8a1ea6ae37e4247c750ec Mon Sep 17 00:00:00 2001 From: Trinity Pointard Date: Tue, 6 Apr 2021 02:54:00 +0200 Subject: [PATCH] run fmt --- src/api/s3_put.rs | 10 ++++++++-- 1 file 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::>(); Ok(Some(block)) } else {