|
|
@@ -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) => {
|