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

View File

@ -145,7 +145,7 @@ impl Bank {
if *parent.hash.read().unwrap() == Hash::default() { if *parent.hash.read().unwrap() == Hash::default() {
*parent.hash.write().unwrap() = parent.hash_internal_state(); *parent.hash.write().unwrap() = parent.hash_internal_state();
} }
bank.leader = leader.clone(); bank.leader = *leader;
bank bank
} }
@ -521,7 +521,7 @@ impl Bank {
let mut fees = 0; let mut fees = 0;
let results = txs let results = txs
.iter() .iter()
.zip(executed.into_iter()) .zip(executed.iter())
.map(|(tx, res)| match *res { .map(|(tx, res)| match *res {
Err(BankError::ProgramError(_, _)) => { Err(BankError::ProgramError(_, _)) => {
// Charge the transaction fee even in case of ProgramError // Charge the transaction fee even in case of ProgramError