Skip to content

Commit 37dfb04

Browse files
committed
Remove Fuse from ArrayChunks implementation
It doesn't seem to be used at all.
1 parent 3102b39 commit 37dfb04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/core/src/iter/adapters/array_chunks.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::array;
2-
use crate::iter::{Fuse, FusedIterator, Iterator};
2+
use crate::iter::{FusedIterator, Iterator};
33
use crate::mem;
44
use crate::mem::MaybeUninit;
55
use crate::ops::{ControlFlow, Try};
@@ -16,7 +16,7 @@ use crate::ptr;
1616
#[must_use = "iterators are lazy and do nothing unless consumed"]
1717
#[unstable(feature = "iter_array_chunks", reason = "recently added", issue = "none")]
1818
pub struct ArrayChunks<I: Iterator, const N: usize> {
19-
iter: Fuse<I>,
19+
iter: I,
2020
remainder: Option<array::IntoIter<I::Item, N>>,
2121
}
2222

@@ -27,7 +27,7 @@ where
2727
#[track_caller]
2828
pub(in crate::iter) fn new(iter: I) -> Self {
2929
assert!(N != 0, "chunk size must be non-zero");
30-
Self { iter: iter.fuse(), remainder: None }
30+
Self { iter, remainder: None }
3131
}
3232

3333
/// Returns an iterator over the remaining elements of the original iterator

0 commit comments

Comments
 (0)