File tree 2 files changed +2
-8
lines changed 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -469,6 +469,7 @@ pub(crate) async fn install(
469
469
do_write_env_files ( ) ?;
470
470
471
471
if !opts. no_modify_path {
472
+ #[ cfg( windows) ]
472
473
do_add_to_programs ( ) ?;
473
474
do_add_to_path ( ) ?;
474
475
}
@@ -1022,6 +1023,7 @@ pub(crate) fn uninstall(no_prompt: bool) -> Result<utils::ExitCode> {
1022
1023
1023
1024
// Remove CARGO_HOME/bin from PATH
1024
1025
do_remove_from_path ( ) ?;
1026
+ #[ cfg( windows) ]
1025
1027
do_remove_from_programs ( ) ?;
1026
1028
1027
1029
// Delete everything in CARGO_HOME *except* the rustup bin
Original file line number Diff line number Diff line change @@ -123,14 +123,6 @@ pub(crate) fn do_write_env_files() -> Result<()> {
123
123
Ok ( ( ) )
124
124
}
125
125
126
- pub ( crate ) fn do_add_to_programs ( ) -> Result < ( ) > {
127
- Ok ( ( ) )
128
- }
129
-
130
- pub ( crate ) fn do_remove_from_programs ( ) -> Result < ( ) > {
131
- Ok ( ( ) )
132
- }
133
-
134
126
/// Tell the upgrader to replace the rustup bins, then delete
135
127
/// itself.
136
128
pub ( crate ) fn run_update ( setup_path : & Path ) -> Result < utils:: ExitCode > {
You can’t perform that action at this time.
0 commit comments