diff options
author | Ben S <ogham@bsago.me> | 2015-05-12 03:33:40 +0100 |
---|---|---|
committer | Ben S <ogham@bsago.me> | 2015-05-12 03:33:40 +0100 |
commit | 085067d18ed9004a2c6112def1f916a4b70084b5 (patch) | |
tree | be99ba986564b881dafed40a87f4947782d906b8 /src/dir.rs | |
parent | 2a3045ddfa976543e3336766bf82e60f3023561c (diff) |
Move File fields to their own module
Diffstat (limited to 'src/dir.rs')
-rw-r--r-- | src/dir.rs | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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() } } } |