Skip to content

Commit

Permalink
Implement FusedIterator for InternalMergeJoinBy
Browse files Browse the repository at this point in the history
`I` and `J` are fused by `InternalMergeJoinBy` so we don't need them to implement `FusedIterator`.
  • Loading branch information
Philippe-Cholet authored and jswrenn committed Sep 20, 2023
1 parent fbf7262 commit 5f47287
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/merge_join.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::cmp::Ordering;
use std::fmt;
use std::iter::Fuse;
use std::iter::{Fuse, FusedIterator};
use std::marker::PhantomData;

use either::Either;
Expand Down Expand Up @@ -339,3 +339,11 @@ where
}
}
}

impl<I, J, F, T> FusedIterator for InternalMergeJoinBy<I, J, F>
where
I: Iterator,
J: Iterator,
F: OrderingOrBool<I::Item, J::Item, Out = T>,
{
}

0 comments on commit 5f47287

Please sign in to comment.