Skip to content

Commit

Permalink
fix: long std import
Browse files Browse the repository at this point in the history
  • Loading branch information
arriqaaq committed Jan 13, 2025
1 parent 006f13b commit de71a25
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/iter.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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<I>,
write_set_iter:
std::iter::Peekable<std::collections::btree_map::Range<'a, Bytes, Vec<WriteSetEntry>>>,
snap_iter: Peekable<I>,
write_set_iter: Peekable<btree_map::Range<'a, Bytes, Vec<WriteSetEntry>>>,
limit: usize,
count: usize,
_phantom: PhantomData<R>,
Expand Down Expand Up @@ -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<I>,
write_set_iter:
std::iter::Peekable<std::collections::btree_map::Range<'a, Bytes, Vec<WriteSetEntry>>>,
snap_iter: Peekable<I>,
write_set_iter: Peekable<btree_map::Range<'a, Bytes, Vec<WriteSetEntry>>>,
limit: Option<usize>,
count: usize,
_phantom: PhantomData<R>,
Expand Down

0 comments on commit de71a25

Please sign in to comment.