Skip to content

Commit bdc026e

Browse files
committed
fix clippy error
1 parent f1fc80a commit bdc026e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/cli.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -506,11 +506,10 @@ impl Cli {
506506
);
507507
}
508508

509-
cli.bin_name = app
510-
.get_bin_name()
509+
app.get_bin_name()
511510
.and_then(|name| name.split('.').next())
512511
.unwrap_or("xh")
513-
.to_owned();
512+
.clone_into(&mut cli.bin_name);
514513

515514
if matches!(cli.bin_name.as_str(), "https" | "xhs" | "xhttps") {
516515
cli.https = true;

0 commit comments

Comments
 (0)