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:
Jiahao XU 2022-08-31 14:48:15 +10:00 committed by GitHub
parent 480ea19462
commit b330a18d40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 5 deletions

View file

@ -35,7 +35,10 @@
//! # async fn main() {
//!
//! assert_eq!(
//! get_desired_targets(Some("x86_64-apple-darwin,aarch64-apple-darwin")).get().await,
//! get_desired_targets(Some(vec![
//! "x86_64-apple-darwin".to_string(),
//! "aarch64-apple-darwin".to_string(),
//! ])).get().await,
//! &["x86_64-apple-darwin", "aarch64-apple-darwin"],
//! );
//! # }