From aee7e84ebee8bf0ce134904a96dcbc1d3654f075 Mon Sep 17 00:00:00 2001 From: Yihau Chen Date: Fri, 9 Aug 2024 15:10:28 +0800 Subject: [PATCH] clippy: needless_borrows_for_generic_args (#2495) fix needless_borrows_for_generic_args --- keygen/src/keygen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keygen/src/keygen.rs b/keygen/src/keygen.rs index 0965b4ce8ad04b..faf3a493ff7a7b 100644 --- a/keygen/src/keygen.rs +++ b/keygen/src/keygen.rs @@ -703,7 +703,7 @@ fn do_main(matches: &ArgMatches) -> Result<(), Box> { .count .fetch_sub(1, Ordering::Relaxed); if !no_outfile { - write_keypair_file(&keypair, &format!("{}.json", keypair.pubkey())) + write_keypair_file(&keypair, format!("{}.json", keypair.pubkey())) .unwrap(); println!( "Wrote keypair to {}",