mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-03 18:50:02 +00:00
Change typeof Args::targets
to Option<Vec<String>>
(#327)
* Change typeof `Args::targets` to `Option<Vec<String>>` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
480ea19462
commit
b330a18d40
4 changed files with 8 additions and 5 deletions
|
@ -29,7 +29,7 @@ pub async fn install_crates(mut args: Args, jobserver_client: LazyJobserverClien
|
|||
};
|
||||
|
||||
// Launch target detection
|
||||
let desired_targets = get_desired_targets(args.targets.as_deref());
|
||||
let desired_targets = get_desired_targets(args.targets.take());
|
||||
|
||||
// Initialize reqwest client
|
||||
let client = create_reqwest_client(args.secure, args.min_tls_version.map(|v| v.into()))?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue