Skip to content

Commit

Permalink
Update common.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustdesk authored Jan 30, 2024
1 parent 42cdfb0 commit 70242e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Expand Down

0 comments on commit 70242e6

Please sign in to comment.