From b54356ce417635d99d6519a48a899dd10643434d Mon Sep 17 00:00:00 2001 From: Daniel King Date: Wed, 30 Oct 2024 17:40:26 -0400 Subject: [PATCH] +1 --- vortex-serde/src/layouts/write/writer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vortex-serde/src/layouts/write/writer.rs b/vortex-serde/src/layouts/write/writer.rs index 686879ef60..43382ad9bb 100644 --- a/vortex-serde/src/layouts/write/writer.rs +++ b/vortex-serde/src/layouts/write/writer.rs @@ -105,7 +105,7 @@ impl LayoutWriter { Some(x) => x, }; - let mut byte_offsets = Vec::with_capacity(size_hint); + let mut byte_offsets = Vec::with_capacity(size_hint + 1); byte_offsets.push(self.msgs.tell()); while let Some(chunk) = stream.try_next().await? { metadata.push_chunk(&chunk)?;