@@ -968,7 +968,7 @@ pub(crate) async fn update_from_dist(
968968 let mut toolchain = opts. toolchain . clone ( ) ;
969969 let res = loop {
970970 let result = try_update_from_dist_ (
971- opts. dl_cfg ,
971+ & opts. dl_cfg ,
972972 opts. update_hash ,
973973 & toolchain,
974974 match opts. exists {
@@ -1067,7 +1067,7 @@ pub(crate) async fn update_from_dist(
10671067
10681068#[ allow( clippy:: too_many_arguments) ]
10691069async fn try_update_from_dist_ (
1070- download : DownloadCfg < ' _ > ,
1070+ download : & DownloadCfg < ' _ > ,
10711071 update_hash : Option < & Path > ,
10721072 toolchain : & ToolchainDesc ,
10731073 profile : Option < Profile > ,
@@ -1152,7 +1152,7 @@ async fn try_update_from_dist_(
11521152 & m,
11531153 changes,
11541154 force_update,
1155- & download,
1155+ download,
11561156 & toolchain. manifest_name ( ) ,
11571157 true ,
11581158 )
@@ -1233,7 +1233,7 @@ async fn try_update_from_dist_(
12331233}
12341234
12351235pub ( crate ) async fn dl_v2_manifest (
1236- download : DownloadCfg < ' _ > ,
1236+ download : & DownloadCfg < ' _ > ,
12371237 update_hash : Option < & Path > ,
12381238 toolchain : & ToolchainDesc ,
12391239) -> Result < Option < ( ManifestV2 , String ) > > {
@@ -1282,7 +1282,7 @@ pub(crate) async fn dl_v2_manifest(
12821282}
12831283
12841284async fn dl_v1_manifest (
1285- download : DownloadCfg < ' _ > ,
1285+ download : & DownloadCfg < ' _ > ,
12861286 toolchain : & ToolchainDesc ,
12871287) -> Result < Vec < String > > {
12881288 let root_url = toolchain. package_dir ( download. dist_root ) ;
0 commit comments