@@ -42,7 +42,7 @@ pub(crate) const CONFIG_FILE: &str = "multirust-config.toml";
4242#[ derive( Debug ) ]
4343pub struct Manifestation {
4444 installation : Components ,
45- target_triple : TargetTuple ,
45+ target_tuple : TargetTuple ,
4646}
4747
4848#[ derive( Debug ) ]
@@ -87,12 +87,12 @@ impl Manifestation {
8787 /// it will be created as needed. If there's an existing install
8888 /// then the rust-install installation format will be verified. A
8989 /// bad installer version is the only reason this will fail.
90- pub fn open ( prefix : InstallPrefix , triple : TargetTuple ) -> Result < Self > {
91- // TODO: validate the triple with the existing install as well
90+ pub fn open ( prefix : InstallPrefix , target_tuple : TargetTuple ) -> Result < Self > {
91+ // TODO: validate the tuple with the existing install as well
9292 // as the metadata format of the existing install
9393 Ok ( Self {
9494 installation : Components :: open ( prefix) ?,
95- target_triple : triple ,
95+ target_tuple ,
9696 } )
9797 }
9898
@@ -146,7 +146,7 @@ impl Manifestation {
146146 {
147147 for component in & components {
148148 match & component. target {
149- Some ( t) if t != & self . target_triple => warn ! (
149+ Some ( t) if t != & self . target_tuple => warn ! (
150150 "skipping unavailable component {} for target {}" ,
151151 new_manifest. short_name( component) ,
152152 t
@@ -215,14 +215,14 @@ impl Manifestation {
215215 // Uninstall components
216216 for component in update. components_to_uninstall {
217217 match ( implicit_modify, & component. target ) {
218- ( true , Some ( t) ) if t != & self . target_triple => {
218+ ( true , Some ( t) ) if t != & self . target_tuple => {
219219 info ! (
220220 "removing previous version of component {} for target {}" ,
221221 new_manifest. short_name( & component) ,
222222 t
223223 ) ;
224224 }
225- ( false , Some ( t) ) if t != & self . target_triple => {
225+ ( false , Some ( t) ) if t != & self . target_tuple => {
226226 info ! (
227227 "removing component {} for target {}" ,
228228 new_manifest. short_name( & component) ,
@@ -416,11 +416,11 @@ impl Manifestation {
416416
417417 let url = new_manifest
418418 . iter ( )
419- . find ( |u| u. contains ( & format ! ( "{}{}" , self . target_triple , ".tar.gz" ) ) ) ;
419+ . find ( |u| u. contains ( & format ! ( "{}{}" , self . target_tuple , ".tar.gz" ) ) ) ;
420420 if url. is_none ( ) {
421421 return Err ( anyhow ! (
422422 "binary package was not provided for '{}'" ,
423- self . target_triple ,
423+ self . target_tuple ,
424424 ) ) ;
425425 }
426426 // Only replace once. The cost is inexpensive.
@@ -595,7 +595,7 @@ impl Update {
595595 ) -> Result < Self > {
596596 // The package to install.
597597 let rust_package = new_manifest. get_package ( "rust" ) ?;
598- let rust_target_package = rust_package. get_target ( Some ( & manifestation. target_triple ) ) ?;
598+ let rust_target_package = rust_package. get_target ( Some ( & manifestation. target_tuple ) ) ?;
599599
600600 changes. check_invariants ( config) ?;
601601
@@ -609,7 +609,7 @@ impl Update {
609609 let looks_like_v1 = config. is_none ( ) && !installed_components. is_empty ( ) ;
610610 if looks_like_v1 {
611611 let mut profile_components = new_manifest
612- . get_profile_components ( Profile :: Default , & manifestation. target_triple ) ?;
612+ . get_profile_components ( Profile :: Default , & manifestation. target_tuple ) ?;
613613 starting_list. append ( & mut profile_components) ;
614614 }
615615
@@ -689,7 +689,7 @@ impl Update {
689689 result. components_to_install . push ( component. clone ( ) ) ;
690690 } else if changes. explicit_add_components . contains ( component) {
691691 match & component. target {
692- Some ( t) if t != & manifestation. target_triple => info ! (
692+ Some ( t) if t != & manifestation. target_tuple => info ! (
693693 "component {} for target {} is up to date" ,
694694 new_manifest. short_name( component) ,
695695 t,
0 commit comments