File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -684,7 +684,9 @@ pub fn main() -> Result<utils::ExitCode> {
684684 SetSubcmd :: DefaultHost { host_triple } => cfg
685685 . set_default_host_triple ( host_triple)
686686 . map ( |_| utils:: ExitCode ( 0 ) ) ,
687- SetSubcmd :: Profile { profile_name } => set_profile ( cfg, & profile_name) ,
687+ SetSubcmd :: Profile { profile_name } => {
688+ cfg. set_profile ( & profile_name) . map ( |_| utils:: ExitCode ( 0 ) )
689+ }
688690 SetSubcmd :: AutoSelfUpdate {
689691 auto_self_update_mode,
690692 } => set_auto_self_update ( cfg, & auto_self_update_mode) ,
@@ -1499,11 +1501,6 @@ fn man(
14991501 Ok ( utils:: ExitCode ( 0 ) )
15001502}
15011503
1502- fn set_profile ( cfg : & mut Cfg , profile : & str ) -> Result < utils:: ExitCode > {
1503- cfg. set_profile ( profile) ?;
1504- Ok ( utils:: ExitCode ( 0 ) )
1505- }
1506-
15071504fn set_auto_self_update ( cfg : & mut Cfg , auto_self_update_mode : & str ) -> Result < utils:: ExitCode > {
15081505 if self_update:: NEVER_SELF_UPDATE {
15091506 let mut args = process ( ) . args_os ( ) ;
You can’t perform that action at this time.
0 commit comments