Skip to content

Commit 15c8a0e

Browse files
committed
Inline Iterator as IntoIterator.
1 parent 83ebb00 commit 15c8a0e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ impl<I: Iterator> IntoIterator for I {
238238
type Item = I::Item;
239239
type IntoIter = I;
240240

241+
#[inline]
241242
fn into_iter(self) -> I {
242243
self
243244
}

0 commit comments

Comments
 (0)