Force internal iterator to inline.

This commit is contained in:
Andrew Gallant 2016-09-16 10:32:25 -04:00
parent 585ef59ab0
commit 9360266301

View File

@ -646,6 +646,7 @@ impl DirList {
impl Iterator for DirList {
type Item = Result<fs::DirEntry>;
#[inline(always)]
fn next(&mut self) -> Option<Result<fs::DirEntry>> {
match *self {
DirList::Closed(ref mut it) => it.next(),