From fc27c08e11051d5eb5dbf1f373b78b4b46d654d7 Mon Sep 17 00:00:00 2001 From: Jussi Saurio Date: Thu, 10 Jul 2025 15:36:46 +0300 Subject: [PATCH] clippy --- core/storage/btree.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/storage/btree.rs b/core/storage/btree.rs index 34e682968..0a39d891c 100644 --- a/core/storage/btree.rs +++ b/core/storage/btree.rs @@ -3130,8 +3130,8 @@ impl BTreeCursor { ** pass. */ let mut done = [false; MAX_NEW_SIBLING_PAGES_AFTER_BALANCE]; - let rightmost_page_negative_idx = (1 - sibling_count_new as i64); - let rightmost_page_positive_idx = (sibling_count_new as i64) - 1; + let rightmost_page_negative_idx = 1 - sibling_count_new as i64; + let rightmost_page_positive_idx = sibling_count_new as i64 - 1; for i in rightmost_page_negative_idx..=rightmost_page_positive_idx { // As mentioned above, we do two passes over the pages: // 1. Downward pass: Process pages in decreasing order