diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-04-25 21:18:42 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-04-28 11:40:37 +0200 |
| commit | 15c8a0efc0d9be7f82f359ab407405ddba2f2d8d (patch) | |
| tree | 462f8d44aeaf0184cec4f71535871795db5902e6 /library/core/src | |
| parent | 83ebb00645cfa3288546b947aa557e90cc355bfa (diff) | |
| download | rust-15c8a0efc0d9be7f82f359ab407405ddba2f2d8d.tar.gz rust-15c8a0efc0d9be7f82f359ab407405ddba2f2d8d.zip | |
Inline Iterator as IntoIterator.
Diffstat (limited to 'library/core/src')
| -rw-r--r-- | library/core/src/iter/traits/collect.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/iter/traits/collect.rs b/library/core/src/iter/traits/collect.rs index 13a2e24cadd..62e9c46a8d0 100644 --- a/library/core/src/iter/traits/collect.rs +++ b/library/core/src/iter/traits/collect.rs @@ -238,6 +238,7 @@ impl<I: Iterator> IntoIterator for I { type Item = I::Item; type IntoIter = I; + #[inline] fn into_iter(self) -> I { self } |
