summaryrefslogtreecommitdiffstats
path: root/src/dir.rs
diff options
context:
space:
mode:
authorBen S <ogham@bsago.me>2015-05-12 03:33:40 +0100
committerBen S <ogham@bsago.me>2015-05-12 03:33:40 +0100
commit085067d18ed9004a2c6112def1f916a4b70084b5 (patch)
treebe99ba986564b881dafed40a87f4947782d906b8 /src/dir.rs
parent2a3045ddfa976543e3336766bf82e60f3023561c (diff)
Move File fields to their own module
Diffstat (limited to 'src/dir.rs')
-rw-r--r--src/dir.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/dir.rs b/src/dir.rs
index 5bc570e..7bbeda7 100644
--- a/src/dir.rs
+++ b/src/dir.rs
@@ -1,6 +1,5 @@
use feature::Git;
-use file::File;
-use file;
+use file::{File, fields};
use std::io;
use std::fs;
@@ -65,11 +64,11 @@ impl Dir {
}
/// Get a string describing the Git status of the given file.
- pub fn git_status(&self, path: &Path, prefix_lookup: bool) -> file::Git {
+ pub fn git_status(&self, path: &Path, prefix_lookup: bool) -> fields::Git {
match (&self.git, prefix_lookup) {
(&Some(ref git), false) => git.status(path),
(&Some(ref git), true) => git.dir_status(path),
- (&None, _) => file::Git::empty()
+ (&None, _) => fields::Git::empty()
}
}
}