Skip to content

Commit

Permalink
passes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arriqaaq committed Feb 13, 2025
1 parent eb7379b commit 83ec138
Show file tree
Hide file tree
Showing 2 changed files with 180 additions and 268 deletions.
9 changes: 3 additions & 6 deletions src/art.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1590,10 +1590,7 @@ impl<P: KeyTrait, V: Clone> Tree<P, V> {
/// Returns a `Range` iterator instance that iterates over the key-value pairs within the given range.
/// If the Trie is empty, an empty `Range` iterator is returned.
///
pub fn range<'a, R>(
&'a self,
range: R,
) -> impl Iterator<Item = IterItem<'a, V>> + DoubleEndedIterator
pub fn range<'a, R>(&'a self, range: R) -> impl DoubleEndedIterator<Item = IterItem<'a, V>>
where
R: RangeBounds<P> + 'a,
{
Expand Down Expand Up @@ -1622,7 +1619,7 @@ impl<P: KeyTrait, V: Clone> Tree<P, V> {
pub fn range_with_versions<'a, R>(
&'a self,
range: R,
) -> impl Iterator<Item = IterItem<'a, V>> + DoubleEndedIterator
) -> impl DoubleEndedIterator<Item = IterItem<'a, V>>
where
R: RangeBounds<P> + 'a,
{
Expand Down Expand Up @@ -1718,7 +1715,7 @@ impl<P: KeyTrait, V: Clone> Tree<P, V> {
&'a self,
range: R,
ts: u64,
) -> impl Iterator<Item = IterItem<'a, V>> + DoubleEndedIterator + 'a
) -> impl DoubleEndedIterator<Item = IterItem<'a, V>> + 'a
where
R: RangeBounds<P> + 'a,
{
Expand Down
Loading

0 comments on commit 83ec138

Please sign in to comment.