aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRustDesk <[email protected]>2024-01-30 18:29:04 +0800
committerGitHub <[email protected]>2024-01-30 18:29:04 +0800
commit70242e6eb292fde42a1e660d222ea2bdb6cdb5f8 (patch)
treeef9b62f2282ab17e9e99dafa6f5dda61dfaf7331
parent42cdfb0885d0c7e7a674603638a0fa9ddcbcc213 (diff)
downloadrustdesk-server-70242e6eb292fde42a1e660d222ea2bdb6cdb5f8.tar.gz
rustdesk-server-70242e6eb292fde42a1e660d222ea2bdb6cdb5f8.zip
Update common.rs
-rw-r--r--src/common.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.rs b/src/common.rs
index 078ee6b..24594a5 100644
--- a/src/common.rs
+++ b/src/common.rs
@@ -78,7 +78,7 @@ pub fn init_args(args: &str, name: &str, about: &str) {
}
}
for (k, v) in matches.args {
- if let Some(v) = v.vals.get(0) {
+ if let Some(v) = v.vals.first() {
std::env::set_var(arg_name(k), v.to_string_lossy().to_string());
}
}