mirror of
https://github.com/BurntSushi/walkdir.git
synced 2025-09-30 15:10:30 +00:00
Force internal iterator to inline.
This commit is contained in:
parent
585ef59ab0
commit
9360266301
@ -646,6 +646,7 @@ impl DirList {
|
|||||||
impl Iterator for DirList {
|
impl Iterator for DirList {
|
||||||
type Item = Result<fs::DirEntry>;
|
type Item = Result<fs::DirEntry>;
|
||||||
|
|
||||||
|
#[inline(always)]
|
||||||
fn next(&mut self) -> Option<Result<fs::DirEntry>> {
|
fn next(&mut self) -> Option<Result<fs::DirEntry>> {
|
||||||
match *self {
|
match *self {
|
||||||
DirList::Closed(ref mut it) => it.next(),
|
DirList::Closed(ref mut it) => it.next(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user