run fmt
This commit is contained in:
parent
9c9471c64f
commit
ae4982c309
@ -302,8 +302,14 @@ impl BodyChunker {
|
|||||||
if self.buf.len() == 0 {
|
if self.buf.len() == 0 {
|
||||||
Ok(None)
|
Ok(None)
|
||||||
} else {
|
} 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);
|
let mut iter = FastCDC::with_eof(
|
||||||
if let Some(Chunk {length, ..}) = iter.next() {
|
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>>();
|
let block = self.buf.drain(..length).collect::<Vec<u8>>();
|
||||||
Ok(Some(block))
|
Ok(Some(block))
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user