File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -45,18 +45,19 @@ impl Attribute {
45
45
#[ cfg( feature="git" ) ] pub use self :: git:: Git ;
46
46
47
47
#[ cfg( not( feature="git" ) ) ] pub struct Git ;
48
- #[ cfg( not( feature="git" ) ) ] use std:: old_path:: posix:: Path ;
48
+ #[ cfg( not( feature="git" ) ) ] use std:: path:: Path ;
49
+ #[ cfg( not( feature="git" ) ) ] use file:: fields;
49
50
#[ cfg( not( feature="git" ) ) ]
50
51
impl Git {
51
52
pub fn scan ( _: & Path ) -> Result < Git , ( ) > {
52
53
Err ( ( ) )
53
54
}
54
55
55
- pub fn status ( & self , _: & Path ) -> String {
56
+ pub fn status ( & self , _: & Path ) -> fields :: Git {
56
57
panic ! ( "Tried to access a Git repo without Git support!" ) ;
57
58
}
58
59
59
- pub fn dir_status ( & self , path : & Path ) -> String {
60
+ pub fn dir_status ( & self , path : & Path ) -> fields :: Git {
60
61
self . status ( path)
61
62
}
62
63
}
You can’t perform that action at this time.
0 commit comments