Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit f1fecae

Browse files
committed
cargo clippy
1 parent b45404d commit f1fecae

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

token/program-2022/src/extension/confidential_transfer/account_info.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ impl TransferAccountInfo {
273273
/// Create a transfer proof data that is split into equality, ciphertext
274274
/// validity (transfer amount), percentage-with-cap, ciphertext validity
275275
/// (fee), and range proofs.
276+
#[allow(clippy::too_many_arguments)]
276277
pub fn generate_split_transfer_with_fee_proof_data(
277278
&self,
278279
transfer_amount: u64,

token/program-2022/src/extension/confidential_transfer/instruction.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ pub fn inner_configure_account(
746746
TokenInstruction::ConfidentialTransferExtension,
747747
ConfidentialTransferInstruction::ConfigureAccount,
748748
&ConfigureAccountInstructionData {
749-
decryptable_zero_balance: decryptable_zero_balance.into(),
749+
decryptable_zero_balance,
750750
maximum_pending_balance_credit_counter: maximum_pending_balance_credit_counter.into(),
751751
proof_instruction_offset,
752752
},
@@ -1047,7 +1047,7 @@ pub fn withdraw(
10471047
mint,
10481048
amount,
10491049
decimals,
1050-
new_decryptable_available_balance.into(),
1050+
new_decryptable_available_balance,
10511051
authority,
10521052
multisig_signers,
10531053
equality_proof_data_location,
@@ -1334,7 +1334,7 @@ pub fn apply_pending_balance(
13341334
token_program_id,
13351335
token_account,
13361336
pending_balance_instructions,
1337-
new_decryptable_available_balance.into(),
1337+
new_decryptable_available_balance,
13381338
authority,
13391339
multisig_signers,
13401340
) // calls check_program_account

0 commit comments

Comments
 (0)