Add field desired_targets to binstall::Options

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-07-21 15:05:12 +10:00
parent aa88dce215
commit 6a95bb07e0
No known key found for this signature in database
GPG key ID: 591C0B03040416D6
4 changed files with 6 additions and 11 deletions

View file

@ -75,7 +75,6 @@ impl Resolution {
pub async fn resolve(
opts: Arc<Options>,
crate_name: CrateName,
desired_targets: DesiredTargets,
temp_dir: Arc<Path>,
install_path: Arc<Path>,
client: Client,
@ -123,7 +122,7 @@ pub async fn resolve(
let mut fetchers = MultiFetcher::default();
let desired_targets = desired_targets.get().await;
let desired_targets = opts.desired_targets.get().await;
for target in desired_targets {
debug!("Building metadata for target: {target}");