Skip to content

Commit

Permalink
Fix a needless borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
xry111 committed Nov 21, 2023
1 parent f7be4cf commit 5774544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ fn main() {

// Read password
let prompt = format!("[cftool] password for {}: ", cf.get_identy());
let passwd = rpassword::prompt_password(&prompt).unwrap_or_else(|err| {
let passwd = rpassword::prompt_password(prompt).unwrap_or_else(|err| {
error!("failed reading password: {}", err);
exit(1);
});
Expand Down

0 comments on commit 5774544

Please sign in to comment.