From 57745446af9b3b30fe276b88ac80588d7eefb988 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Tue, 21 Nov 2023 11:41:03 +0800 Subject: [PATCH] Fix a needless borrow --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 374e7d4..3aeadf9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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); });