Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

token cli: fix some clippy string errors #5580

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions token/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}

Expand Down Expand Up @@ -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::<f64>(arg_matches, "expected_fee");
Expand Down
Loading