From d511cffa1148dd6d66a6f77bbbb95600cf16491b Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Sat, 10 Oct 2026 09:31:13 +0200 Subject: [PATCH] Satisfy clippy in the long set size check Co-Authored-By: Claude Sonnet 5.5 --- crates/horizon-world/src/worldgen/long_set.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/horizon-world/src/worldgen/long_set.rs b/crates/horizon-world/src/worldgen/long_set.rs index cfb79899e..55b2b0130 100644 --- a/crates/horizon-world/src/worldgen/long_set.rs +++ b/crates/horizon-world/src/worldgen/long_set.rs @@ -41,7 +41,7 @@ pub fn iteration_order(keys: &[i64]) -> Vec { table[pos] = Some(index); } size += 1; - if size - 1 >= max_fill(n) { + if size > max_fill(n) { let new_n = array_size(size + 1); let mut grown: Vec> = vec![None; new_n]; for slot in table.iter().rev().flatten() {