Skip to content

Commit

Permalink
interleave_shortest: No longer fused
Browse files Browse the repository at this point in the history
Stop documenting as fused. Instead have default behavior (regular
iterators in, regular iterators out).
  • Loading branch information
bluss committed Aug 27, 2015
1 parent 5f56ce5 commit beaf395
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/adaptors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ pub struct InterleaveShortest<I, J> where
I: Iterator,
J: Iterator<Item=I::Item>,
{
it0: Fuse<I>,
it1: Fuse<J>,
it0: I,
it1: J,
phase: bool, // false ==> it0, true ==> it1
}

Expand All @@ -96,8 +96,8 @@ impl<I, J> InterleaveShortest<I, J> where
/// Create a new `InterleaveShortest` iterator.
pub fn new(a: I, b: J) -> InterleaveShortest<I, J> {
InterleaveShortest {
it0: a.fuse(),
it1: b.fuse(),
it0: a,
it1: b,
phase: false,
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,6 @@ pub trait Itertools : Iterator {
///
/// Iterator element type is `Self::Item`.
///
/// This iterator is *fused*.
///
/// ```
/// use itertools::Itertools;
///
Expand Down

0 comments on commit beaf395

Please sign in to comment.