mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-26 07:25:48 +00:00
Inline Iterator as IntoIterator.
This commit is contained in:
parent
83ebb00645
commit
15c8a0efc0
@ -238,6 +238,7 @@ impl<I: Iterator> IntoIterator for I {
|
||||
type Item = I::Item;
|
||||
type IntoIter = I;
|
||||
|
||||
#[inline]
|
||||
fn into_iter(self) -> I {
|
||||
self
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user