Skip to content

Commit a398b6b

Browse files
committed
inline next() on &mut Iterator impl
1 parent 86d6d2b commit a398b6b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/iter/traits/iterator.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3460,6 +3460,7 @@ pub trait Iterator {
34603460
#[stable(feature = "rust1", since = "1.0.0")]
34613461
impl<I: Iterator + ?Sized> Iterator for &mut I {
34623462
type Item = I::Item;
3463+
#[inline]
34633464
fn next(&mut self) -> Option<I::Item> {
34643465
(**self).next()
34653466
}

0 commit comments

Comments
 (0)