diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml index d7d5d3056..ecbd6cce7 100644 --- a/core/tauri/Cargo.toml +++ b/core/tauri/Cargo.toml @@ -59,7 +59,7 @@ bincode = "1.3" dirs-next = "2.0" percent-encoding = "2.1" base64 = { version = "0.13", optional = true } -clap = { version = "=3.0.0-rc.4", optional = true } +clap = { version = "=3.0.0-rc.5", optional = true } notify-rust = { version = "4.5", optional = true } reqwest = { version = "0.11", features = [ "json", "multipart" ], optional = true } bytes = { version = "1", features = [ "serde" ], optional = true } diff --git a/core/tauri/src/api/cli/macros.rs b/core/tauri/src/api/cli/macros.rs index 4dc44d313..33ce70130 100644 --- a/core/tauri/src/api/cli/macros.rs +++ b/core/tauri/src/api/cli/macros.rs @@ -7,7 +7,7 @@ macro_rules! bind_string_arg { let arg = $arg; let mut clap_arg = $clap_arg; if let Some(value) = &arg.$arg_name { - clap_arg = clap_arg.$clap_field(value); + clap_arg = clap_arg.$clap_field(value.as_str()); } clap_arg }};