From b689db8ea6e232a85dd59148cf28996491cadb19 Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 18 Oct 2023 11:09:06 +0200 Subject: [PATCH] token cli: fix some clippy string errors --- token/cli/src/main.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/token/cli/src/main.rs b/token/cli/src/main.rs index b470169fb48..2b933722617 100644 --- a/token/cli/src/main.rs +++ b/token/cli/src/main.rs @@ -2844,13 +2844,10 @@ async fn command_update_confidential_transfer_settings( if let Some(new_auditor_pubkey) = new_auditor_pubkey { println_display( config, - format!( - " auditor encryption pubkey set to {}", - new_auditor_pubkey.to_string(), - ), + format!(" auditor encryption pubkey set to {}", new_auditor_pubkey), ); } else { - println_display(config, format!(" auditability disabled",)) + println_display(config, " auditability disabled".to_string()) } } @@ -4762,7 +4759,7 @@ async fn process_command<'a>( let no_recipient_is_ata_owner = arg_matches.is_present("no_recipient_is_ata_owner") || !recipient_is_ata_owner; if recipient_is_ata_owner { - println_display(config, format!("recipient-is-ata-owner is now the default behavior. The option has been deprecated and will be removed in a future release.")); + println_display(config, "recipient-is-ata-owner is now the default behavior. The option has been deprecated and will be removed in a future release.".to_string()); } let use_unchecked_instruction = arg_matches.is_present("use_unchecked_instruction"); let expected_fee = value_of::(arg_matches, "expected_fee");