From 7a4e44b38b310c1932b28bac3260d943f198faaf Mon Sep 17 00:00:00 2001 From: dapplion <35266934+dapplion@users.noreply.github.com> Date: Fri, 12 Apr 2024 16:24:44 +0900 Subject: [PATCH] lint --- beacon_node/beacon_processor/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beacon_node/beacon_processor/src/lib.rs b/beacon_node/beacon_processor/src/lib.rs index a515307f118..2a89ff2b591 100644 --- a/beacon_node/beacon_processor/src/lib.rs +++ b/beacon_node/beacon_processor/src/lib.rs @@ -127,7 +127,7 @@ impl BeaconProcessorQueueLengths { let active_validator_count = state .get_active_validator_indices(state.slot().epoch(E::slots_per_epoch()), spec) .map_err(|e| format!("Error computing active indices: {:?}", e))? - .len() as usize; + .len(); let slots_per_epoch = E::slots_per_epoch() as usize; Ok(Self { @@ -736,6 +736,7 @@ impl BeaconProcessor { /// /// The optional `work_journal_tx` allows for an outside process to receive a log of all work /// events processed by `self`. This should only be used during testing. + #[allow(clippy::too_many_arguments)] pub fn spawn_manager( mut self, event_rx: mpsc::Receiver>,