@@ -123,7 +123,7 @@ enum OverrideCfg {
123123 toolchain : ToolchainDesc ,
124124 components : Vec < String > ,
125125 targets : Vec < String > ,
126- profile : Option < dist :: Profile > ,
126+ profile : Option < Profile > ,
127127 } ,
128128}
129129
@@ -175,7 +175,7 @@ impl OverrideCfg {
175175 . toolchain
176176 . profile
177177 . as_deref ( )
178- . map ( dist :: Profile :: from_str)
178+ . map ( Profile :: from_str)
179179 . transpose ( ) ?,
180180 }
181181 }
@@ -230,7 +230,7 @@ impl From<LocalToolchainName> for OverrideCfg {
230230pub ( crate ) const UNIX_FALLBACK_SETTINGS : & str = "/etc/rustup/settings.toml" ;
231231
232232pub ( crate ) struct Cfg < ' a > {
233- profile_override : Option < dist :: Profile > ,
233+ profile_override : Option < Profile > ,
234234 pub rustup_dir : PathBuf ,
235235 pub settings_file : SettingsFile ,
236236 pub fallback_settings : Option < FallbackSettings > ,
@@ -348,7 +348,7 @@ impl<'a> Cfg<'a> {
348348 }
349349 }
350350
351- pub ( crate ) fn set_profile_override ( & mut self , profile : dist :: Profile ) {
351+ pub ( crate ) fn set_profile_override ( & mut self , profile : Profile ) {
352352 self . profile_override = Some ( profile) ;
353353 }
354354
@@ -391,7 +391,7 @@ impl<'a> Cfg<'a> {
391391 // if there is no profile in the settings file. The last variant happens when
392392 // a user upgrades from a version of Rustup without profiles to a version of
393393 // Rustup with profiles.
394- pub ( crate ) fn get_profile ( & self ) -> Result < dist :: Profile > {
394+ pub ( crate ) fn get_profile ( & self ) -> Result < Profile > {
395395 if let Some ( p) = self . profile_override {
396396 return Ok ( p) ;
397397 }
0 commit comments