inline next() on &mut Iterator impl
This commit is contained in:
parent
86d6d2b738
commit
a398b6b9d4
1 changed files with 1 additions and 0 deletions
|
@ -3460,6 +3460,7 @@ pub trait Iterator {
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
impl<I: Iterator + ?Sized> Iterator for &mut I {
|
impl<I: Iterator + ?Sized> Iterator for &mut I {
|
||||||
type Item = I::Item;
|
type Item = I::Item;
|
||||||
|
#[inline]
|
||||||
fn next(&mut self) -> Option<I::Item> {
|
fn next(&mut self) -> Option<I::Item> {
|
||||||
(**self).next()
|
(**self).next()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue