chore: cargo +nightly clippy --fix -Z unstable-options

This commit is contained in:
Alexander Meißner
2021-06-18 15:34:46 +02:00
committed by Michael Vines
parent 3570b00560
commit 6514096a67
177 changed files with 1021 additions and 1021 deletions

View File

@ -139,7 +139,7 @@ fn apply_previous_transactions(
for transaction_info in transaction_infos {
let mut amount = transaction_info.amount;
for allocation in allocations.iter_mut() {
if !has_same_recipient(&allocation, &transaction_info) {
if !has_same_recipient(allocation, transaction_info) {
continue;
}
if allocation.amount >= amount {
@ -161,7 +161,7 @@ fn transfer<S: Signer>(
to_pubkey: &Pubkey,
) -> ClientResult<Transaction> {
let create_instruction =
system_instruction::transfer(&sender_keypair.pubkey(), &to_pubkey, lamports);
system_instruction::transfer(&sender_keypair.pubkey(), to_pubkey, lamports);
let message = Message::new(&[create_instruction], Some(&sender_keypair.pubkey()));
let (recent_blockhash, _fees) = client.get_recent_blockhash()?;
Ok(Transaction::new(
@ -215,7 +215,7 @@ fn distribution_instructions(
}
stake_instruction::create_account(
&sender_pubkey,
&new_stake_account_address,
new_stake_account_address,
&authorized,
&lockup,
allocation.amount - unlocked_sol,
@ -231,12 +231,12 @@ fn distribution_instructions(
&sender_stake_args.stake_account_address,
&stake_authority,
allocation.amount - unlocked_sol,
&new_stake_account_address,
new_stake_account_address,
);
// Make the recipient the new stake authority
instructions.push(stake_instruction::authorize(
&new_stake_account_address,
new_stake_account_address,
&stake_authority,
&recipient,
StakeAuthorize::Staker,
@ -245,7 +245,7 @@ fn distribution_instructions(
// Make the recipient the new withdraw authority
instructions.push(stake_instruction::authorize(
&new_stake_account_address,
new_stake_account_address,
&withdraw_authority,
&recipient,
StakeAuthorize::Withdrawer,
@ -260,7 +260,7 @@ fn distribution_instructions(
custodian: None,
};
instructions.push(stake_instruction::set_lockup(
&new_stake_account_address,
new_stake_account_address,
&lockup,
&stake_args.lockup_authority.unwrap(),
));
@ -673,7 +673,7 @@ fn update_finalized_transactions(
{
statuses.extend(
client
.get_signature_statuses(&unconfirmed_signatures_chunk)?
.get_signature_statuses(unconfirmed_signatures_chunk)?
.value
.into_iter(),
);