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")]
|
||||
impl<I: Iterator + ?Sized> Iterator for &mut I {
|
||||
type Item = I::Item;
|
||||
#[inline]
|
||||
fn next(&mut self) -> Option<I::Item> {
|
||||
(**self).next()
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue