Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/walkdir.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2016-09-16 17:32:25 +0300
committerAndrew Gallant <jamslam@gmail.com>2016-09-16 17:32:25 +0300
commit9360266301978a79532fd83df10e95e71c7b0bd3 (patch)
treed63c8e060fba33e4914eb1dc00a70c00d4cdfbc3
parent585ef59ab06643cdfc6dc676524bbfe7df24c620 (diff)
Force internal iterator to inline.
-rw-r--r--src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 6b6176b..53770fb 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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(),