fix clippy warnings
This commit is contained in:
parent
5c9777970d
commit
9713a3ac02
|
@ -145,7 +145,7 @@ impl Bank {
|
|||
if *parent.hash.read().unwrap() == Hash::default() {
|
||||
*parent.hash.write().unwrap() = parent.hash_internal_state();
|
||||
}
|
||||
bank.leader = leader.clone();
|
||||
bank.leader = *leader;
|
||||
bank
|
||||
}
|
||||
|
||||
|
@ -521,7 +521,7 @@ impl Bank {
|
|||
let mut fees = 0;
|
||||
let results = txs
|
||||
.iter()
|
||||
.zip(executed.into_iter())
|
||||
.zip(executed.iter())
|
||||
.map(|(tx, res)| match *res {
|
||||
Err(BankError::ProgramError(_, _)) => {
|
||||
// Charge the transaction fee even in case of ProgramError
|
||||
|
|
Loading…
Reference in New Issue