Skip to content

Commit 5f47287

Browse files
Philippe-Choletjswrenn
authored andcommitted
Implement FusedIterator for InternalMergeJoinBy
`I` and `J` are fused by `InternalMergeJoinBy` so we don't need them to implement `FusedIterator`.
1 parent fbf7262 commit 5f47287

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/merge_join.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::cmp::Ordering;
22
use std::fmt;
3-
use std::iter::Fuse;
3+
use std::iter::{Fuse, FusedIterator};
44
use std::marker::PhantomData;
55

66
use either::Either;
@@ -339,3 +339,11 @@ where
339339
}
340340
}
341341
}
342+
343+
impl<I, J, F, T> FusedIterator for InternalMergeJoinBy<I, J, F>
344+
where
345+
I: Iterator,
346+
J: Iterator,
347+
F: OrderingOrBool<I::Item, J::Item, Out = T>,
348+
{
349+
}

0 commit comments

Comments
 (0)