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 {
159159
160160/// Obtain the current instance of CurrentProcess
161161pub fn process ( ) -> Process {
162- home_process ( )
163- }
164-
165- /// Obtain the current instance of HomeProcess
166- pub ( crate ) fn home_process ( ) -> Process {
167162 match PROCESS . with ( |p| p. borrow ( ) . clone ( ) ) {
168163 None => panic ! ( "No process instance" ) ,
169164 Some ( p) => p,
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ use retry::{retry, OperationResult};
1111use sha2:: Sha256 ;
1212use url:: Url ;
1313
14- use crate :: currentprocess:: { home_process , process} ;
14+ use crate :: currentprocess:: process;
1515use crate :: errors:: * ;
1616use crate :: utils:: notifications:: Notification ;
1717use crate :: utils:: raw;
@@ -496,15 +496,15 @@ pub fn current_exe() -> Result<PathBuf> {
496496}
497497
498498pub ( crate ) fn home_dir ( ) -> Option < PathBuf > {
499- home:: home_dir_with_env ( & home_process ( ) )
499+ home:: home_dir_with_env ( & process ( ) )
500500}
501501
502502pub ( 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" )
504504}
505505
506506pub ( 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" )
508508}
509509
510510pub ( crate ) fn format_path_for_display ( path : & str ) -> String {
You can’t perform that action at this time.
0 commit comments