Skip to content

Commit

Permalink
Use format! for better code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
LDprg committed Oct 7, 2023
1 parent dbc5c9a commit 44f40fb
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions winapps/src/freerdp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,28 +29,28 @@ pub mod freerdp_back {
match app {
Some(exe) => {
xfreerdp.args([
"/app:".to_owned() + exe,
"-wallpaper".to_owned(),
"/d:".to_owned() + &config.rdp.domain,
"/u:".to_owned() + &config.rdp.username,
"/p:".to_owned() + &config.rdp.password,
"/v:".to_owned() + &config.rdp.host,
"/dynamic-resolution".to_owned(),
"+auto-reconnect".to_owned(),
"+clipboard".to_owned(),
"+home-drive".to_owned(),
&format!("/app:{}", exe),
"-wallpaper",
&format!("/d:{}", &config.rdp.domain),
&format!("/u:{}", &config.rdp.username),
&format!("/p:{}", &config.rdp.password),
&format!("/v:{}", &config.rdp.host),
"/dynamic-resolution",
"+auto-reconnect",
"+clipboard",
"+home-drive",
]);
}
None => {
xfreerdp.args([
"/d:".to_owned() + &config.rdp.domain,
"/u:".to_owned() + &config.rdp.username,
"/p:".to_owned() + &config.rdp.password,
"/v:".to_owned() + &config.rdp.host,
"/dynamic-resolution".to_owned(),
"+auto-reconnect".to_owned(),
"+clipboard".to_owned(),
"+home-drive".to_owned(),
&format!("/d:{}", &config.rdp.domain),
&format!("/u:{}", &config.rdp.username),
&format!("/p:{}", &config.rdp.password),
&format!("/v:{}", &config.rdp.host),
"/dynamic-resolution",
"+auto-reconnect",
"+clipboard",
"+home-drive",
]);
}
}
Expand Down

0 comments on commit 44f40fb

Please sign in to comment.