@@ -123,7 +123,7 @@ enum OverrideCfg {
123
123
toolchain : ToolchainDesc ,
124
124
components : Vec < String > ,
125
125
targets : Vec < String > ,
126
- profile : Option < dist :: Profile > ,
126
+ profile : Option < Profile > ,
127
127
} ,
128
128
}
129
129
@@ -175,7 +175,7 @@ impl OverrideCfg {
175
175
. toolchain
176
176
. profile
177
177
. as_deref ( )
178
- . map ( dist :: Profile :: from_str)
178
+ . map ( Profile :: from_str)
179
179
. transpose ( ) ?,
180
180
}
181
181
}
@@ -230,7 +230,7 @@ impl From<LocalToolchainName> for OverrideCfg {
230
230
pub ( crate ) const UNIX_FALLBACK_SETTINGS : & str = "/etc/rustup/settings.toml" ;
231
231
232
232
pub ( crate ) struct Cfg < ' a > {
233
- profile_override : Option < dist :: Profile > ,
233
+ profile_override : Option < Profile > ,
234
234
pub rustup_dir : PathBuf ,
235
235
pub settings_file : SettingsFile ,
236
236
pub fallback_settings : Option < FallbackSettings > ,
@@ -348,7 +348,7 @@ impl<'a> Cfg<'a> {
348
348
}
349
349
}
350
350
351
- pub ( crate ) fn set_profile_override ( & mut self , profile : dist :: Profile ) {
351
+ pub ( crate ) fn set_profile_override ( & mut self , profile : Profile ) {
352
352
self . profile_override = Some ( profile) ;
353
353
}
354
354
@@ -391,7 +391,7 @@ impl<'a> Cfg<'a> {
391
391
// if there is no profile in the settings file. The last variant happens when
392
392
// a user upgrades from a version of Rustup without profiles to a version of
393
393
// Rustup with profiles.
394
- pub ( crate ) fn get_profile ( & self ) -> Result < dist :: Profile > {
394
+ pub ( crate ) fn get_profile ( & self ) -> Result < Profile > {
395
395
if let Some ( p) = self . profile_override {
396
396
return Ok ( p) ;
397
397
}
0 commit comments