Skip to content

Commit 6923cc3

Browse files
committed
Actually run through the iterator in Itertools::exhaust
1 parent b6efeb1 commit 6923cc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,7 @@ pub trait Itertools : Iterator {
15351535
fn exhaust(self)
15361536
where Self: Sized,
15371537
{
1538-
self.count();
1538+
for _ in self { }
15391539
}
15401540
}
15411541

0 commit comments

Comments
 (0)