From de71a2538b53be95853b98b53d340e9cb893387a Mon Sep 17 00:00:00 2001 From: arriqaaq Date: Mon, 13 Jan 2025 22:06:05 +0530 Subject: [PATCH] fix: long std import --- src/iter.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/iter.rs b/src/iter.rs index a84cb72c..f594a3f7 100644 --- a/src/iter.rs +++ b/src/iter.rs @@ -1,4 +1,6 @@ -use std::{cmp::Ordering, marker::PhantomData, ops::RangeBounds}; +use std::{ + cmp::Ordering, collections::btree_map, iter::Peekable, marker::PhantomData, ops::RangeBounds, +}; use bytes::Bytes; use vart::VariableSizeKey; @@ -26,9 +28,8 @@ pub(crate) struct MergingScanIterator<'a, R, I: Iterator> { core: &'a Core, read_set: Option<&'a mut ReadSet>, savepoints: u32, - snap_iter: std::iter::Peekable, - write_set_iter: - std::iter::Peekable>>, + snap_iter: Peekable, + write_set_iter: Peekable>>, limit: usize, count: usize, _phantom: PhantomData, @@ -167,9 +168,8 @@ where /// An iterator over the keys in the snapshot and write set. /// It does not add anything to the read set. pub(crate) struct KeyScanIterator<'a, R, I: Iterator> { - snap_iter: std::iter::Peekable, - write_set_iter: - std::iter::Peekable>>, + snap_iter: Peekable, + write_set_iter: Peekable>>, limit: Option, count: usize, _phantom: PhantomData,