summaryrefslogtreecommitdiff
path: root/cli/mainrt.rs
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2024-03-22 14:03:56 -0700
committerGitHub <noreply@github.com>2024-03-22 14:03:56 -0700
commit86cdf3703399367836c89accba3756437d820bb0 (patch)
tree986ab6c88e0a65ffaadb164eab94d44c0ff497b1 /cli/mainrt.rs
parent08ec6e5831478f6d15188e91d9a8e3c00d80c1ed (diff)
perf(cli): use args_os (#23039)
Extracted from #22718
Diffstat (limited to 'cli/mainrt.rs')
-rw-r--r--cli/mainrt.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/mainrt.rs b/cli/mainrt.rs
index ae4ea727f..56bde7c4b 100644
--- a/cli/mainrt.rs
+++ b/cli/mainrt.rs
@@ -68,10 +68,9 @@ fn unwrap_or_exit<T>(result: Result<T, AnyError>) -> T {
}
fn main() {
- let args: Vec<String> = env::args().collect();
+ let args: Vec<_> = env::args_os().collect();
let current_exe_path = current_exe().unwrap();
- let standalone =
- standalone::extract_standalone(&current_exe_path, args.clone());
+ let standalone = standalone::extract_standalone(&current_exe_path, args);
let future = async move {
match standalone {
Ok(Some(future)) => {