Procházet zdrojové kódy

Merge branch 'master' of github.com:ogham/exa

Ben S před 10 roky
rodič
revize
d77e43bb9b
1 změnil soubory, kde provedl 4 přidání a 3 odebrání
  1. 4 3
      src/feature/mod.rs

+ 4 - 3
src/feature/mod.rs

@@ -45,18 +45,19 @@ impl Attribute {
 #[cfg(feature="git")] pub use self::git::Git;
 #[cfg(feature="git")] pub use self::git::Git;
 
 
 #[cfg(not(feature="git"))] pub struct Git;
 #[cfg(not(feature="git"))] pub struct Git;
-#[cfg(not(feature="git"))] use std::old_path::posix::Path;
+#[cfg(not(feature="git"))] use std::path::Path;
+#[cfg(not(feature="git"))] use file::fields;
 #[cfg(not(feature="git"))]
 #[cfg(not(feature="git"))]
 impl Git {
 impl Git {
     pub fn scan(_: &Path) -> Result<Git, ()> {
     pub fn scan(_: &Path) -> Result<Git, ()> {
         Err(())
         Err(())
     }
     }
 
 
-    pub fn status(&self, _: &Path) -> String {
+    pub fn status(&self, _: &Path) -> fields::Git {
         panic!("Tried to access a Git repo without Git support!");
         panic!("Tried to access a Git repo without Git support!");
     }
     }
 
 
-    pub fn dir_status(&self, path: &Path) -> String {
+    pub fn dir_status(&self, path: &Path) -> fields::Git {
         self.status(path)
         self.status(path)
     }
     }
 }
 }