From f3ab125ceb351acfc9743e3272cdc89ae529eee2 Mon Sep 17 00:00:00 2001 From: Handy-caT <37216852+Handy-caT@users.noreply.github.com> Date: Wed, 19 Nov 2025 21:01:06 +0300 Subject: [PATCH 1/2] fix + bump --- src/index/unsized_node.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/index/unsized_node.rs b/src/index/unsized_node.rs index 6d0c454..8620519 100644 --- a/src/index/unsized_node.rs +++ b/src/index/unsized_node.rs @@ -50,11 +50,7 @@ where } pub fn rebuild(&mut self) { - self.length = self - .inner - .last() - .expect("should not rebuild on empty node") - .aligned_size(); + self.length = self.inner.last().map(|v| v.aligned_size()).unwrap_or(0); self.length += UNSIZED_HEADER_LENGTH as usize; for value in self.inner.iter() { self.length += value.aligned_size(); From d2ed7794ed4736cd8ed6ee7d7bb220a9148b8261 Mon Sep 17 00:00:00 2001 From: Handy-caT <37216852+Handy-caT@users.noreply.github.com> Date: Wed, 19 Nov 2025 21:01:14 +0300 Subject: [PATCH 2/2] fix + bump --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index eda0c0b..647951b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = ["codegen", "examples", "performance_measurement", "performance_measur [package] name = "worktable" -version = "0.8.8" +version = "0.8.9" edition = "2024" authors = ["Handy-caT"] license = "MIT"