summaryrefslogtreecommitdiffstats
path: root/src/feature
diff options
context:
space:
mode:
authorMarkus Engelbrecht <github@enbre.com>2015-05-24 12:05:44 +0200
committerMarkus Engelbrecht <github@enbre.com>2015-05-24 12:05:44 +0200
commit5caa6dd924cd6f0844f033bbd4b7000dd765037f (patch)
tree9d2c280c52613aab1aaa20bde6b771a2384016c3 /src/feature
parentc3b7757e8e0ea46eae565bea7ace491a42e2c67d (diff)
fix compile errors if git support is disabled
Diffstat (limited to 'src/feature')
-rw-r--r--src/feature/mod.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/feature/mod.rs b/src/feature/mod.rs
index 13f3b9b..a6993b4 100644
--- a/src/feature/mod.rs
+++ b/src/feature/mod.rs
@@ -45,18 +45,19 @@ impl Attribute {
#[cfg(feature="git")] pub use self::git::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"))]
impl Git {
pub fn scan(_: &Path) -> Result<Git, ()> {
Err(())
}
- pub fn status(&self, _: &Path) -> String {
+ pub fn status(&self, _: &Path) -> fields::Git {
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)
}
}