From 584bfb205219497a1676d14ce443da78f8604f45 Mon Sep 17 00:00:00 2001 From: Sergio Chouhy Date: Fri, 24 Apr 2026 00:42:54 -0300 Subject: [PATCH] clippy --- key_protocol/src/key_management/key_tree/mod.rs | 2 -- wallet/src/cli/programs/native_token_transfer.rs | 2 +- wallet/src/cli/programs/token.rs | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/key_protocol/src/key_management/key_tree/mod.rs b/key_protocol/src/key_management/key_tree/mod.rs index 0702293d..0ae0a52f 100644 --- a/key_protocol/src/key_management/key_tree/mod.rs +++ b/key_protocol/src/key_management/key_tree/mod.rs @@ -41,7 +41,6 @@ impl KeyTree { let root_keys = N::from_seed(seed_fit); let account_id_map = root_keys .account_ids() - .into_iter() .map(|id| (id, ChainIndex::root())) .collect(); @@ -54,7 +53,6 @@ impl KeyTree { pub fn new_from_root(root: N) -> Self { let account_id_map = root .account_ids() - .into_iter() .map(|id| (id, ChainIndex::root())) .collect(); diff --git a/wallet/src/cli/programs/native_token_transfer.rs b/wallet/src/cli/programs/native_token_transfer.rs index 233ee1a4..d13f72b6 100644 --- a/wallet/src/cli/programs/native_token_transfer.rs +++ b/wallet/src/cli/programs/native_token_transfer.rs @@ -156,7 +156,7 @@ impl WalletSubcommand for AuthTransferSubcommand { anyhow::bail!("Provide only one of --to or --to-label") } }; - let to_identifier = to_identifier.unwrap_or(rand::random()); + let to_identifier = to_identifier.unwrap_or_else(rand::random); let underlying_subcommand = match (to, to_npk, to_vpk) { (None, None, None) => { anyhow::bail!( diff --git a/wallet/src/cli/programs/token.rs b/wallet/src/cli/programs/token.rs index 219812eb..ee16121c 100644 --- a/wallet/src/cli/programs/token.rs +++ b/wallet/src/cli/programs/token.rs @@ -256,7 +256,7 @@ impl WalletSubcommand for TokenProgramAgnosticSubcommand { anyhow::bail!("Provide only one of --to or --to-label") } }; - let to_identifier = to_identifier.unwrap_or(rand::random()); + let to_identifier = to_identifier.unwrap_or_else(rand::random); let underlying_subcommand = match (to, to_npk, to_vpk) { (None, None, None) => { anyhow::bail!(