Skip to content

Commit 6e96cd8

Browse files
committed
Remove unused specialization of size_hint
Additionally, specializing something in `Unspecialized` does not seem reasonable.
1 parent 03f0731 commit 6e96cd8

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tests/specializations.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ where
1313
fn next(&mut self) -> Option<Self::Item> {
1414
self.0.next()
1515
}
16-
17-
#[inline(always)]
18-
fn size_hint(&self) -> (usize, Option<usize>) {
19-
self.0.size_hint()
20-
}
2116
}
2217

2318
fn check_specialized<'a, V, IterItem, Iter, F>(iterator: &Iter, mapper: F)

0 commit comments

Comments
 (0)