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>>();
Ok(Some(block))
} else {
Ok(None)
unreachable!("FastCDC returned not chunk")
}
}
}