Skip to content

Commit beaf395

Browse files
committed
interleave_shortest: No longer fused
Stop documenting as fused. Instead have default behavior (regular iterators in, regular iterators out).
1 parent 5f56ce5 commit beaf395

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/adaptors.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ pub struct InterleaveShortest<I, J> where
8484
I: Iterator,
8585
J: Iterator<Item=I::Item>,
8686
{
87-
it0: Fuse<I>,
88-
it1: Fuse<J>,
87+
it0: I,
88+
it1: J,
8989
phase: bool, // false ==> it0, true ==> it1
9090
}
9191

@@ -96,8 +96,8 @@ impl<I, J> InterleaveShortest<I, J> where
9696
/// Create a new `InterleaveShortest` iterator.
9797
pub fn new(a: I, b: J) -> InterleaveShortest<I, J> {
9898
InterleaveShortest {
99-
it0: a.fuse(),
100-
it1: b.fuse(),
99+
it0: a,
100+
it1: b,
101101
phase: false,
102102
}
103103
}

src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,6 @@ pub trait Itertools : Iterator {
214214
///
215215
/// Iterator element type is `Self::Item`.
216216
///
217-
/// This iterator is *fused*.
218-
///
219217
/// ```
220218
/// use itertools::Itertools;
221219
///

0 commit comments

Comments
 (0)