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 committed Aug 24, 2023
1 parent 8444c78 commit 8f3c11b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/merge_join.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::cmp::Ordering;
use std::iter::Fuse;
use std::iter::{Fuse, FusedIterator};
use std::fmt;
use std::marker::PhantomData;

Expand Down Expand Up @@ -327,3 +327,10 @@ impl<I, J, F, T> Iterator for InternalMergeJoinBy<I, J, F>
}
}
}

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 8f3c11b

Please sign in to comment.