diff options
| author | The8472 <git@infinite-source.de> | 2021-10-11 17:50:03 +0200 |
|---|---|---|
| committer | The8472 <git@infinite-source.de> | 2021-10-11 17:50:03 +0200 |
| commit | a398b6b9d429cd0044c0b4cec95ec4fe2dbac295 (patch) | |
| tree | 59c98cc7cc8c477d7a309ef20bab4b0d2f50615d | |
| parent | 86d6d2b7389fe1b339402c1798edae8b695fc9ef (diff) | |
| download | rust-a398b6b9d429cd0044c0b4cec95ec4fe2dbac295.tar.gz rust-a398b6b9d429cd0044c0b4cec95ec4fe2dbac295.zip | |
inline next() on &mut Iterator impl
| -rw-r--r-- | library/core/src/iter/traits/iterator.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/iter/traits/iterator.rs b/library/core/src/iter/traits/iterator.rs index 8f9b32e7750..f53d6cac7ed 100644 --- a/library/core/src/iter/traits/iterator.rs +++ b/library/core/src/iter/traits/iterator.rs @@ -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() } |
