mark branch as unreachable

This commit is contained in:
Trinity Pointard 2021-04-06 16:53:39 +02:00 committed by Alex Auvolat
parent ae4982c309
commit 24d605fb05
No known key found for this signature in database
GPG Key ID: EDABF9711E244EB1

View File

@ -313,7 +313,7 @@ impl BodyChunker {
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 {
Ok(None) unreachable!("FastCDC returned not chunk")
} }
} }
} }