]> git.lizzy.rs Git - rust.git/commitdiff
Inline Iterator as IntoIterator.
authorCamille GILLOT <gillot.camille@gmail.com>
Sun, 25 Apr 2021 19:18:42 +0000 (21:18 +0200)
committerCamille GILLOT <gillot.camille@gmail.com>
Wed, 28 Apr 2021 09:40:37 +0000 (11:40 +0200)
library/core/src/iter/traits/collect.rs

index 13a2e24cadd10454ec7a0d9f1efbd968695edc43..62e9c46a8d0b96a368be2f0f17c354c336ba3887 100644 (file)
@@ -238,6 +238,7 @@ impl<I: Iterator> IntoIterator for I {
     type Item = I::Item;
     type IntoIter = I;
 
+    #[inline]
     fn into_iter(self) -> I {
         self
     }