File tree 4 files changed +6
-1
lines changed 4 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -731,6 +731,7 @@ fn try_update_from_dist_<'a>(
731
731
& download,
732
732
& download. notify_handler ,
733
733
& toolchain. manifest_name ( ) ,
734
+ true ,
734
735
) ? {
735
736
UpdateStatus :: Unchanged => Ok ( None ) ,
736
737
UpdateStatus :: Changed => Ok ( Some ( hash) ) ,
Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ impl Manifestation {
108
108
download_cfg : & DownloadCfg < ' _ > ,
109
109
notify_handler : & dyn Fn ( Notification < ' _ > ) ,
110
110
toolchain_str : & str ,
111
+ implicit_modify : bool ,
111
112
) -> Result < UpdateStatus > {
112
113
// Some vars we're going to need a few times
113
114
let temp_cfg = download_cfg. temp_cfg ;
@@ -168,7 +169,7 @@ impl Manifestation {
168
169
169
170
// Uninstall components
170
171
for component in & update. components_to_uninstall {
171
- let notification = if altered {
172
+ let notification = if implicit_modify {
172
173
Notification :: RemovingOldComponent
173
174
} else {
174
175
Notification :: RemovingComponent
Original file line number Diff line number Diff line change @@ -710,6 +710,7 @@ impl<'a> Toolchain<'a> {
710
710
& self . download_cfg ( ) ,
711
711
& self . download_cfg ( ) . notify_handler ,
712
712
& toolchain. manifest_name ( ) ,
713
+ false ,
713
714
) ?;
714
715
715
716
Ok ( ( ) )
@@ -763,6 +764,7 @@ impl<'a> Toolchain<'a> {
763
764
& self . download_cfg ( ) ,
764
765
& self . download_cfg ( ) . notify_handler ,
765
766
& toolchain. manifest_name ( ) ,
767
+ false ,
766
768
) ?;
767
769
768
770
Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -460,6 +460,7 @@ fn update_from_dist(
460
460
download_cfg,
461
461
download_cfg. notify_handler ,
462
462
& toolchain. manifest_name ( ) ,
463
+ true ,
463
464
)
464
465
}
465
466
You can’t perform that action at this time.
0 commit comments