@@ -135,12 +135,12 @@ impl Manifestation {
135135 match & component. target {
136136 Some ( t) if t != & self . target_triple => warn ! (
137137 "skipping unavailable component {} for target {}" ,
138- component . short_name( & new_manifest ) ,
138+ new_manifest . short_name( component ) ,
139139 t
140140 ) ,
141141 _ => warn ! (
142142 "skipping unavailable component {}" ,
143- component . short_name( & new_manifest )
143+ new_manifest . short_name( component )
144144 ) ,
145145 }
146146 }
@@ -182,25 +182,25 @@ impl Manifestation {
182182 ( true , Some ( t) ) if t != & self . target_triple => {
183183 info ! (
184184 "removing previous version of component {} for target {}" ,
185- component . short_name( & new_manifest ) ,
185+ new_manifest . short_name( & component ) ,
186186 t
187187 ) ;
188188 }
189189 ( false , Some ( t) ) if t != & self . target_triple => {
190190 info ! (
191191 "removing component {} for target {}" ,
192- component . short_name( & new_manifest ) ,
192+ new_manifest . short_name( & component ) ,
193193 t
194194 ) ;
195195 }
196196 ( true , _) => {
197197 info ! (
198198 "removing previous version of component {}" ,
199- component . short_name( & new_manifest ) ,
199+ new_manifest . short_name( & component ) ,
200200 ) ;
201201 }
202202 ( false , _) => {
203- info ! ( "removing component {}" , component . short_name( & new_manifest ) ) ;
203+ info ! ( "removing component {}" , new_manifest . short_name( & component ) ) ;
204204 }
205205 }
206206
@@ -306,7 +306,7 @@ impl Manifestation {
306306 } else {
307307 warn ! (
308308 "component {} not found during uninstall" ,
309- component . short_name( manifest ) ,
309+ manifest . short_name( & component ) ,
310310 ) ;
311311 }
312312
@@ -556,12 +556,12 @@ impl Update {
556556 match & component. target {
557557 Some ( t) if t != & manifestation. target_triple => info ! (
558558 "component {} for target {} is up to date" ,
559- component . short_name( new_manifest ) ,
559+ new_manifest . short_name( component ) ,
560560 t,
561561 ) ,
562562 _ => info ! (
563563 "component {} is up to date" ,
564- component . short_name( new_manifest )
564+ new_manifest . short_name( component )
565565 ) ,
566566 }
567567 }
@@ -634,7 +634,7 @@ impl<'a> ComponentBinary<'a> {
634634 Ok ( None ) => return None ,
635635 Err ( e) => return Some ( Err ( e) ) ,
636636 } ,
637- status : download_cfg. status_for ( component . short_name ( manifest ) ) ,
637+ status : download_cfg. status_for ( manifest . short_name ( & component ) ) ,
638638 component,
639639 manifest,
640640 download_cfg,
@@ -665,7 +665,7 @@ impl<'a> ComponentBinary<'a> {
665665 )
666666 . await
667667 . with_context ( || {
668- RustupError :: ComponentDownloadFailed ( self . component . name ( self . manifest ) )
668+ RustupError :: ComponentDownloadFailed ( self . manifest . name ( & self . component ) )
669669 } ) ?;
670670
671671 Ok ( ( self , downloaded_file) )
@@ -683,7 +683,7 @@ impl<'a> ComponentBinary<'a> {
683683 // component name plus the target triple.
684684 let pkg_name = self . component . name_in_manifest ( ) ;
685685 let short_pkg_name = self . component . short_name_in_manifest ( ) ;
686- let short_name = self . component . short_name ( self . manifest ) ;
686+ let short_name = self . manifest . short_name ( & self . component ) ;
687687
688688 self . status . installing ( ) ;
689689
0 commit comments