File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -130,17 +130,17 @@ impl Process {
130
130
impl home:: env:: Env for Process {
131
131
fn home_dir ( & self ) -> Option < PathBuf > {
132
132
match self {
133
- Process :: OSProcess ( _) => self . var ( "HOME" ) . ok ( ) . map ( |v| v . into ( ) ) ,
133
+ Process :: OSProcess ( _) => home :: env :: OS_ENV . home_dir ( ) ,
134
134
#[ cfg( feature = "test" ) ]
135
- Process :: TestProcess ( _) => home :: env :: OS_ENV . home_dir ( ) ,
135
+ Process :: TestProcess ( _) => self . var ( "HOME" ) . ok ( ) . map ( |v| v . into ( ) ) ,
136
136
}
137
137
}
138
138
139
139
fn current_dir ( & self ) -> Result < PathBuf , io:: Error > {
140
140
match self {
141
- Process :: OSProcess ( _) => self . current_dir ( ) ,
141
+ Process :: OSProcess ( _) => home :: env :: OS_ENV . current_dir ( ) ,
142
142
#[ cfg( feature = "test" ) ]
143
- Process :: TestProcess ( _) => home :: env :: OS_ENV . current_dir ( ) ,
143
+ Process :: TestProcess ( _) => self . current_dir ( ) ,
144
144
}
145
145
}
146
146
You can’t perform that action at this time.
0 commit comments