From 1b77476016d97fb55d07b6089442cc284a3adda5 Mon Sep 17 00:00:00 2001 From: zeroXbrock <2791467+zeroXbrock@users.noreply.github.com> Date: Tue, 10 Dec 2024 16:52:36 -0800 Subject: [PATCH] chore: make clippy happy --- crates/core/src/spammer/spammer_trait.rs | 2 +- crates/core/src/spammer/tx_actor.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/core/src/spammer/spammer_trait.rs b/crates/core/src/spammer/spammer_trait.rs index c382e75..69fec83 100644 --- a/crates/core/src/spammer/spammer_trait.rs +++ b/crates/core/src/spammer/spammer_trait.rs @@ -92,7 +92,7 @@ where if cache_size == 0 { break; } - if quit.lock().expect("lock failure").clone() { + if *quit.lock().expect("lock failure") { println!("CTRL-C received, stopping spam..."); break; } diff --git a/crates/core/src/spammer/tx_actor.rs b/crates/core/src/spammer/tx_actor.rs index ea27093..37a0619 100644 --- a/crates/core/src/spammer/tx_actor.rs +++ b/crates/core/src/spammer/tx_actor.rs @@ -154,7 +154,7 @@ where println!("tx failed: {:?}", pending_tx.tx_hash); } println!( - "tx {} used {} gas, included in block {}", + "tx landed. hash={}\tgas_used={}\tblock_num={}", pending_tx.tx_hash, receipt.gas_used, receipt