fmt and clippy

This commit is contained in:
Sergio Chouhy 2026-04-28 00:18:57 -03:00
parent 6738d8ef28
commit a23e44a8df
3 changed files with 8 additions and 4 deletions

View File

@ -550,7 +550,10 @@ async fn shielded_transfers_to_two_identifiers_same_npk() -> Result<()> {
.get(&chain_index) .get(&chain_index)
.expect("node was just inserted"); .expect("node was just inserted");
let key_chain = &node.value.0; let key_chain = &node.value.0;
(key_chain.nullifier_public_key, key_chain.viewing_public_key.clone()) (
key_chain.nullifier_public_key,
key_chain.viewing_public_key.clone(),
)
}; };
let npk_hex = hex::encode(npk.0); let npk_hex = hex::encode(npk.0);

View File

@ -82,7 +82,7 @@ pub enum NewSubcommand {
/// Label to assign to the new account. /// Label to assign to the new account.
label: Option<String>, label: Option<String>,
}, },
/// Register new private account with a random identifier. /// Single-account convenience: creates a key node and auto-registers one account with a random identifier.
Private { Private {
#[arg(long)] #[arg(long)]
/// Chain index of a parent node. /// Chain index of a parent node.
@ -91,7 +91,8 @@ pub enum NewSubcommand {
/// Label to assign to the new account. /// Label to assign to the new account.
label: Option<String>, label: Option<String>,
}, },
/// Create a new receiving key (npk + vpk) to share with senders. /// Recommended for receiving from multiple senders: creates a key node (npk + vpk) without
/// registering any account.
PrivateAccountsKey { PrivateAccountsKey {
#[arg(long)] #[arg(long)]
/// Chain index of a parent node. /// Chain index of a parent node.

View File

@ -187,7 +187,7 @@ pub fn produce_data_for_storage(
); );
} }
for (_, entry) in &user_data.default_user_private_accounts { for entry in user_data.default_user_private_accounts.values() {
for (identifier, account) in &entry.accounts { for (identifier, account) in &entry.accounts {
vec_for_storage.push( vec_for_storage.push(
InitialAccountData::Private(Box::new(PrivateAccountPrivateInitialData { InitialAccountData::Private(Box::new(PrivateAccountPrivateInitialData {