File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -159,11 +159,6 @@ impl From<TestProcess> for Process {
159
159
160
160
/// Obtain the current instance of CurrentProcess
161
161
pub fn process ( ) -> Process {
162
- home_process ( )
163
- }
164
-
165
- /// Obtain the current instance of HomeProcess
166
- pub ( crate ) fn home_process ( ) -> Process {
167
162
match PROCESS . with ( |p| p. borrow ( ) . clone ( ) ) {
168
163
None => panic ! ( "No process instance" ) ,
169
164
Some ( p) => p,
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ use retry::{retry, OperationResult};
11
11
use sha2:: Sha256 ;
12
12
use url:: Url ;
13
13
14
- use crate :: currentprocess:: { home_process , process} ;
14
+ use crate :: currentprocess:: process;
15
15
use crate :: errors:: * ;
16
16
use crate :: utils:: notifications:: Notification ;
17
17
use crate :: utils:: raw;
@@ -496,15 +496,15 @@ pub fn current_exe() -> Result<PathBuf> {
496
496
}
497
497
498
498
pub ( crate ) fn home_dir ( ) -> Option < PathBuf > {
499
- home:: home_dir_with_env ( & home_process ( ) )
499
+ home:: home_dir_with_env ( & process ( ) )
500
500
}
501
501
502
502
pub ( crate ) fn cargo_home ( ) -> Result < PathBuf > {
503
- home:: cargo_home_with_env ( & home_process ( ) ) . context ( "failed to determine cargo home" )
503
+ home:: cargo_home_with_env ( & process ( ) ) . context ( "failed to determine cargo home" )
504
504
}
505
505
506
506
pub ( crate ) fn rustup_home ( ) -> Result < PathBuf > {
507
- home:: rustup_home_with_env ( & home_process ( ) ) . context ( "failed to determine rustup home dir" )
507
+ home:: rustup_home_with_env ( & process ( ) ) . context ( "failed to determine rustup home dir" )
508
508
}
509
509
510
510
pub ( crate ) fn format_path_for_display ( path : & str ) -> String {
You can’t perform that action at this time.
0 commit comments