diff options
author | Ben S <ogham@bsago.me> | 2015-05-21 16:09:16 +0100 |
---|---|---|
committer | Ben S <ogham@bsago.me> | 2015-05-21 16:09:16 +0100 |
commit | 31ce5b27abd911b801e0fd0a46b3e74d4d188207 (patch) | |
tree | c1e1df73ed6f8642bb59782afc05f12f4c192705 /src/main.rs | |
parent | c3b7757e8e0ea46eae565bea7ace491a42e2c67d (diff) |
StatResult::Path -> Dir
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index c9ff9f3..ddbad0d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -69,7 +69,7 @@ impl<'dir> Exa<'dir> { // Communication between consumer thread and producer threads enum StatResult<'dir> { File(File<'dir>), - Path(PathBuf), + Dir(PathBuf), Error } @@ -86,7 +86,7 @@ impl<'dir> Exa<'dir> { match results_rx.recv() { Ok(result) => match result { StatResult::File(file) => self.files.push(file), - StatResult::Path(path) => self.dirs.push(path), + StatResult::Dir(path) => self.dirs.push(path), StatResult::Error => () }, Err(_) => unreachable!(), @@ -114,7 +114,7 @@ impl<'dir> Exa<'dir> { StatResult::File(File::with_metadata(metadata, &path, None, true)) } else { - StatResult::Path(path.to_path_buf()) + StatResult::Dir(path.to_path_buf()) } } Err(e) => { |