From 8f3c11bd8242103435ba50e08e72c97ee83dd716 Mon Sep 17 00:00:00 2001 From: Philippe-Cholet Date: Thu, 24 Aug 2023 12:11:23 +0200 Subject: [PATCH] Implement `FusedIterator` for `InternalMergeJoinBy` `I` and `J` are fused by `InternalMergeJoinBy` so we don't need them to implement `FusedIterator`. --- src/merge_join.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/merge_join.rs b/src/merge_join.rs index 3322ed18d..5a7ba59c1 100644 --- a/src/merge_join.rs +++ b/src/merge_join.rs @@ -1,5 +1,5 @@ use std::cmp::Ordering; -use std::iter::Fuse; +use std::iter::{Fuse, FusedIterator}; use std::fmt; use std::marker::PhantomData; @@ -327,3 +327,10 @@ impl Iterator for InternalMergeJoinBy } } } + +impl FusedIterator for InternalMergeJoinBy +where + I: Iterator, + J: Iterator, + F: OrderingOrBool, +{}