diff --git a/src/fullnode.rs b/src/fullnode.rs index 50245ec756..a06420c740 100644 --- a/src/fullnode.rs +++ b/src/fullnode.rs @@ -215,6 +215,7 @@ impl Fullnode { /// `--------` | | `------------` /// `-------------------------------` /// ``` + #[cfg_attr(feature = "cargo-clippy", allow(too_many_arguments))] pub fn new_with_bank( keypair: Keypair, bank: Bank, diff --git a/src/poh.rs b/src/poh.rs index 6b96926359..7eecb46227 100644 --- a/src/poh.rs +++ b/src/poh.rs @@ -84,7 +84,7 @@ pub fn verify(initial: Hash, entries: &[PohEntry]) -> bool { last_hash = id; } - return true; + true } #[cfg(test)] diff --git a/src/sigverify_stage.rs b/src/sigverify_stage.rs index d523fb5b2b..5e5972ec60 100644 --- a/src/sigverify_stage.rs +++ b/src/sigverify_stage.rs @@ -66,13 +66,13 @@ impl SigVerifyStage { let verified_batch = Self::verify_batch(batch, sigverify_disabled); - match sendr + if sendr .lock() .expect("lock in fn verify_batch in tpu") .send(verified_batch) + .is_err() { - Err(_) => return Err(Error::SendError), - _ => (), + return Err(Error::SendError); } let total_time_ms = timing::duration_as_ms(&now.elapsed()); diff --git a/src/transaction.rs b/src/transaction.rs index b6d339f873..81746519a8 100644 --- a/src/transaction.rs +++ b/src/transaction.rs @@ -81,7 +81,7 @@ impl Transaction { ) -> Self { let payment = Payment { tokens: tokens - fee, - to: to, + to, }; let budget = Budget::Pay(payment); let instruction = Instruction::NewContract(Contract { budget, tokens }); diff --git a/src/wallet.rs b/src/wallet.rs index acaccbdd6e..abe225808e 100644 --- a/src/wallet.rs +++ b/src/wallet.rs @@ -235,7 +235,7 @@ pub fn process_command(config: &WalletConfig) -> Result, ) -> Result> {