Skip to content

Commit 7d9b058

Browse files
committed
Actually removed checks this time
1 parent cc480ba commit 7d9b058

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,6 @@ where
8888
type Item = T;
8989

9090
fn next(&mut self) -> Option<Self::Item> {
91-
if self.last.is_none() {
92-
self.last = self.inner.next();
93-
}
94-
9591
let last_item = self.last.as_ref()?;
9692
let mut next = loop {
9793
let curr = self.inner.next();
@@ -148,10 +144,6 @@ where
148144
type Item = T;
149145

150146
fn next(&mut self) -> Option<Self::Item> {
151-
if self.last.is_none() {
152-
self.last = self.inner.next();
153-
}
154-
155147
let last_item = self.last.as_ref()?;
156148
let mut next = loop {
157149
let curr = self.inner.next();

0 commit comments

Comments
 (0)