Skip to content

Commit dc8b5be

Browse files
committed
Implement FusedIterator on CoalesceBy
1 parent 2a246b9 commit dc8b5be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/adaptors/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,8 @@ impl<I, F, T> Iterator for CoalesceBy<I, F, T>
703703
}
704704
}
705705

706+
impl<I: Iterator, F: CoalescePredicate<I::Item, T>, T> FusedIterator for CoalesceBy<I, F, T> {}
707+
706708
/// An iterator adaptor that removes repeated duplicates, determining equality using a comparison function.
707709
///
708710
/// See [`.dedup_by()`](../trait.Itertools.html#method.dedup_by) or [`.dedup()`](../trait.Itertools.html#method.dedup) for more information.
@@ -813,8 +815,6 @@ pub fn dedup_with_count<I>(iter: I) -> DedupWithCount<I>
813815
dedup_by_with_count(iter, DedupEq)
814816
}
815817

816-
impl<I: Iterator, Pred: DedupPredicate<I::Item>> FusedIterator for DedupByWithCount<I, Pred> {}
817-
818818
/// An iterator adaptor that borrows from a `Clone`-able iterator
819819
/// to only pick off elements while the predicate returns `true`.
820820
///

0 commit comments

Comments
 (0)