File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -109,19 +109,19 @@ pub fn main() -> Result<utils::ExitCode> {
109
109
return Ok ( utils:: ExitCode ( 0 ) ) ;
110
110
}
111
111
112
+ if & profile == "complete" {
113
+ warn ! ( "{}" , common:: WARN_COMPLETE_PROFILE ) ;
114
+ }
115
+
112
116
let opts = InstallOpts {
113
117
default_host_triple : default_host,
114
118
default_toolchain,
115
- profile : profile . to_owned ( ) ,
119
+ profile,
116
120
no_modify_path,
117
121
no_update_toolchain : no_update_default_toolchain,
118
122
components : & components. iter ( ) . map ( |s| & * * s) . collect :: < Vec < _ > > ( ) ,
119
123
targets : & targets. iter ( ) . map ( |s| & * * s) . collect :: < Vec < _ > > ( ) ,
120
124
} ;
121
125
122
- if profile == "complete" {
123
- warn ! ( "{}" , common:: WARN_COMPLETE_PROFILE ) ;
124
- }
125
-
126
126
self_update:: install ( no_prompt, verbose, quiet, opts)
127
127
}
You can’t perform that action at this time.
0 commit comments