File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ use rustup::cli::setup_mode;
28
28
use rustup:: currentprocess:: { process, with, OSProcess } ;
29
29
use rustup:: env_var:: RUST_RECURSION_COUNT_MAX ;
30
30
use rustup:: utils:: utils;
31
- use rustup:: TOOLS ;
31
+ use rustup:: { TOOLS , DUP_TOOLS } ;
32
32
33
33
fn main ( ) {
34
34
let process = OSProcess :: default ( ) ;
@@ -67,7 +67,7 @@ fn run_rustup_inner() -> Result<utils::ExitCode> {
67
67
Ok ( v) => Some ( v) ,
68
68
Err ( _) => process ( ) . args ( ) . next ( ) ,
69
69
}
70
- . map ( PathBuf :: from) ;
70
+ . map ( PathBuf :: from) ;
71
71
let name = arg0
72
72
. as_ref ( )
73
73
. and_then ( |a| a. file_stem ( ) )
@@ -94,7 +94,7 @@ fn run_rustup_inner() -> Result<utils::ExitCode> {
94
94
}
95
95
}
96
96
Some ( n) => {
97
- if TOOLS . iter ( ) . find ( |& & name| name == n) . is_some ( ) {
97
+ if TOOLS . iter ( ) . chain ( DUP_TOOLS . iter ( ) ) . find ( |& & name| name == n) . is_some ( ) {
98
98
proxy_mode:: main ( )
99
99
} else {
100
100
Err ( ErrorKind :: UnknownProxyName ( n. to_string ( ) ) . into ( ) )
You can’t perform that action at this time.
0 commit comments