summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorBen S <ogham@bsago.me>2015-05-21 16:09:16 +0100
committerBen S <ogham@bsago.me>2015-05-21 16:09:16 +0100
commit31ce5b27abd911b801e0fd0a46b3e74d4d188207 (patch)
treec1e1df73ed6f8642bb59782afc05f12f4c192705 /src/main.rs
parentc3b7757e8e0ea46eae565bea7ace491a42e2c67d (diff)
StatResult::Path -> Dir
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
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) => {