From 2bc8c0c8500ad20e9b5d3f5e78ad5546f393f60e Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Fri, 12 Sep 2025 21:09:38 +0300 Subject: [PATCH] core/storage: Remove unused import warning --- core/storage/btree.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/storage/btree.rs b/core/storage/btree.rs index 258ff71c9..574b6aa74 100644 --- a/core/storage/btree.rs +++ b/core/storage/btree.rs @@ -38,11 +38,10 @@ use super::{ write_varint_to_vec, IndexInteriorCell, IndexLeafCell, OverflowCell, MINIMUM_CELL_SIZE, }, }; -use std::collections::{HashMap, HashSet}; use std::{ cell::{Cell, Ref, RefCell}, cmp::{Ordering, Reverse}, - collections::BinaryHeap, + collections::{BinaryHeap, HashMap}, fmt::Debug, ops::DerefMut, pin::Pin, @@ -3396,7 +3395,7 @@ impl BTreeCursor { // pages_pointed_to helps us debug we did in fact create divider cells to all the new pages and the rightmost pointer, // also points to the last page. #[cfg(debug_assertions)] - let mut pages_pointed_to = HashSet::new(); + let mut pages_pointed_to = std::collections::HashSet::new(); // Write right pointer in parent page to point to new rightmost page. keep in mind // we update rightmost pointer first because inserting cells could defragment parent page,