Skip to content

Commit

Permalink
fix clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
ducaale committed May 4, 2024
1 parent f1fc80a commit bdc026e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/cli.rs
Expand Up @@ -506,11 +506,10 @@ impl Cli {
);
}

cli.bin_name = app
.get_bin_name()
app.get_bin_name()
.and_then(|name| name.split('.').next())
.unwrap_or("xh")
.to_owned();
.clone_into(&mut cli.bin_name);

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

0 comments on commit bdc026e

Please sign in to comment.