From 15c8a0efc0d9be7f82f359ab407405ddba2f2d8d Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Sun, 25 Apr 2021 21:18:42 +0200 Subject: [PATCH] Inline Iterator as IntoIterator. --- library/core/src/iter/traits/collect.rs | 1 + 1 file changed, 1 insertion(+) 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 IntoIterator for I { type Item = I::Item; type IntoIter = I; + #[inline] fn into_iter(self) -> I { self }