From 4a0f7bbb2f07a2cc37e9ea2406522f805565184c Mon Sep 17 00:00:00 2001 From: Moritz Hoffmann Date: Tue, 11 Jun 2024 11:45:59 -0400 Subject: [PATCH] Fix panic in to_vec (#512) `rewind_vals` only works if there are any values. Signed-off-by: Moritz Hoffmann --- src/trace/cursor/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trace/cursor/mod.rs b/src/trace/cursor/mod.rs index e470e48c5..9233c4962 100644 --- a/src/trace/cursor/mod.rs +++ b/src/trace/cursor/mod.rs @@ -84,8 +84,8 @@ pub trait Cursor { { let mut out = Vec::new(); self.rewind_keys(storage); - self.rewind_vals(storage); while self.key_valid(storage) { + self.rewind_vals(storage); while self.val_valid(storage) { let mut kv_out = Vec::new(); self.map_times(storage, |ts, r| {