diff options
author | Trinity Pointard <trinity.pointard@gmail.com> | 2021-04-06 02:54:00 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-04-27 16:53:48 +0200 |
commit | ae4982c309a72b3d6fa8a1ea6ae37e4247c750ec (patch) | |
tree | 47e7d877f04b0e8cccc2dee0aa1cbec773300b6e | |
parent | 9c9471c64f977a18e4253a4396eff595e2917edd (diff) | |
download | garage-ae4982c309a72b3d6fa8a1ea6ae37e4247c750ec.tar.gz garage-ae4982c309a72b3d6fa8a1ea6ae37e4247c750ec.zip |
run fmt
-rw-r--r-- | src/api/s3_put.rs | 10 |
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 { |