fix clippy warnings

This commit is contained in:
Pankaj Garg 2019-02-21 15:31:00 -08:00 committed by Grimes
parent 5c9777970d
commit 9713a3ac02
1 changed files with 2 additions and 2 deletions

View File

@ -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