We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4146079 commit 5f78b4eCopy full SHA for 5f78b4e
library/core/src/iter/adapters/array_chunks.rs
@@ -46,11 +46,11 @@ where
46
/// ```
47
#[unstable(feature = "iter_array_chunks", reason = "recently added", issue = "100450")]
48
#[inline]
49
- pub fn into_remainder(mut self) -> Option<array::IntoIter<I::Item, N>> {
50
- if self.remainder.is_none() {
51
- while let Some(_) = self.next() {}
+ pub fn into_remainder(mut self) -> array::IntoIter<I::Item, N> {
+ while self.remainder.is_none() {
+ let _ = self.next();
52
}
53
- self.remainder
+ self.remainder.unwrap()
54
55
56
0 commit comments