Forráskód Böngészése

StatResult::Path -> Dir

Ben S 10 éve
szülő
commit
31ce5b27ab
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      src/main.rs

+ 3 - 3
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) => {